Title: An econometric model of tenure choice and demand for housing as a joint decision