GetRates {VirtualPop} | R Documentation |
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)
data |
data (the object data_raw, produced by the GetData() function.) |
refyear |
Reference year, which is the year of period data |
A list object with three elements:
ASDR |
Age-specific death rates, by sex for reference year |
ASFR |
Age-specific birth rates by birth order for reference year |
ratesM |
Matrix of transition rates in format required for mulitstate modelling |
The object returned by the function has three attributes:
country |
Country |
type |
Type of data (period data or cohort data) |
year |
Calendar year for which period death rates are used to complete cohort experience in case of incomplete mortality experience (reference year). |
## Not run:
# Not run because passwords needed
# Input data: data_raw produced by GetData().
rates <- GetRates(data=data_raw,refyear=2021)
## End(Not run)