This paper presents an approach to modelling the flow and the stock of mortgage debt, using loan‑level data. Our approach allows us to consider different macroeconomic scenarios for the housing market, lenders' and borrowers' behaviour, and different calibrations of macroprudential policy...