Code for forecasting the default probability of mortgages based on historical performance and other covariates