View source: R/reverse_survival_aux.R
q_calcWpp2019 | R Documentation |
Calculate qx probability of death between age interval age_inf, age_sup for WPP 2019 locations
q_calcWpp2019(location, years, sex, age_inf, age_sup)
location |
location from WPP 2019 data |
years |
years to retrieve estimation of qx (numeric) |
sex |
female, male or both |
age_inf |
lower bound age of estimation |
age_sup |
upper_bound age of estimation |
data.frame with 3 columns, years of estimation, age_interval, qx
# q0_5 for Mexico for periods 0-4, 5-9 and 10-14 before 2010
q_calcWpp2019( location = 'Mexico',
years = 2010 - c( 2.5, 7.5, 12.5 ),
sex = 'both',
age_inf = 0,
age_sup = 5 )
# q15_45 for Mexican females for periods 0-4, 5-9 and 10-14 before 2010
q_calcWpp2019( location = 'Mexico',
years = 2010 - c( 2.5, 7.5, 12.5 ),
sex = 'female',
age_inf = 15,
age_sup = 60 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.