q_calcWpp2019: Compute qx probability of death

View source: R/reverse_survival_aux.R

q_calcWpp2019R Documentation

Compute qx probability of death

Description

Calculate qx probability of death between age interval age_inf, age_sup for WPP 2019 locations

Usage

q_calcWpp2019(location, years, sex, age_inf, age_sup)

Arguments

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

Value

data.frame with 3 columns, years of estimation, age_interval, qx

Examples


# 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 )


josehcms/fertestr documentation built on Oct. 9, 2024, 9:03 p.m.