The supplemental .zip archive for this publication contains the following file. Stata files were created using Version 14 and may not be compatible with earlier versions. The version of MLwiN used was 2.35. 1. Stata program file to edit data for multiprocess modelling and to conduct the preliminary IGLS and final MCMC models, and the population median predictions vaisanen_2017_DemRes_MCMCcode.do The author is not permitted to publish the data set used in this study, but those interested in using Finnish register data in their research should be in touch with: The National Institute of Health and Welfare (births and abortions): Apply online at: https://www.thl.fi/en/web/thlfi-en/statistics/information-for-researchers/authorisation-application Statistics Finland (other data): Contact by email tutkijapalvelut@stat.fi or by telephone +358 29 551 2758. See http://www.stat.fi/tup/mikroaineistot/index_en.html.