powered by
The rates are retrieved from the life tables and fertility tables included in the raw data downloaded from the HMD and HFD.
GetRates(data, refyear)
A list object with three elements:
Age-specific death rates, by sex for reference year
Age-specific birth rates by birth order for reference year
Matrix of transition rates in format required for mulitstate modelling
The object returned by the function has three attributes:
Country
Type of data (period data or cohort data)
Calendar year for which period death rates are used to complete cohort experience in case of incomplete mortality experience (reference year).
data (the object data_raw, produced by the GetData() function.)
Reference year, which is the year of period data
if (FALSE) { # Not run because passwords needed # Input data: data_raw produced by GetData(). rates <- GetRates(data=data_raw,refyear=2021) }
Run the code above in your browser using DataLab