## Registration is required to be able to download data from the HMD and HFD
## HMD: https://www.mortality.org
## HFD: https://www.humanfertility.org
if (FALSE) {
# Period data
dLH <- BuildViP(user,pw_HMD,pw_HFD,
countrycode="USA",
refyear=2021,
ncohort=1000,
ngen=4)
# Cohort data
dLHc <- BuildViP(user,pw_HMD,pw_HFD,
countrycode="USA",
cohort=1964,
ncohort=1000,
ngen=4)
}
Run the code above in your browser using DataLab