Switching model for the housing decision