A structural model of the demand for owner-occupied housing