All analyses in this paper were conducted using the software SAS EG 7.1. This study is produced under the Norwegian Statistics Act, where privacy concerns restrict the availability of the data sets. Unidentifiable data can be available from the author, conditional on permission from Statistics Norway. More information on formal requirements and how to apply for permission can be found at https://www.ssb.no/en/omssb/tjenester-og-verktoy/data-til-forskning Variables used in the analyses (all the variables are extracted from Statistics Norway's population register): alderu - age (at end of the year) innalder - age at arrival in Norway regstatus - status in the population register (1 = resident, 3 = emigrated) inngrunn1 - reason for migration ('FAM' = family migrant) mor_faar - year of birth barnmed - number of pre-migration births antuf3gen - number of foreign-born in 3 generations (124 = 'immigrant') landbak3gen - country background (usually country of birth, 131 = Poland, 136 = Lithuania, 144 = Germany) botid - duration of stay in Norway (in years) btdny - duration of stay in Norway (numeric) ar - year (of observation) kom - year of arrival in Norway The supplemental .zip archive for this publication contains the following files: 1. SAS code to prepare the data files code_prepare_data.txt 2. SAS code to calculate Total Fertilty Rate and Age-Specific Fertility Rates code_tfr_asfr.txt