FertRevSurvWPP: Reverse Survival Fertility Estimation Function for WPP2019...

View source: R/reverse_survival_clean.R

FertRevSurvWPPR Documentation

Reverse Survival Fertility Estimation Function for WPP2019 data

Description

Apply reverse survival fertility estimation to WPP2019 country data

Usage

FertRevSurvWPP(locations, date_ref, lt_family = "General", logquad = FALSE)

Arguments

locations

list of locations by name or code according to WPP 2019 location list (check fertestr::locs_avail() for list of available locations)

date_ref

reference date of inquiry given in the following formats: Y-m-d (4 digit year - 2 digit month - 2 digit day), Y-m (4 digit year - 2 digit month), Y (4 digit year)

lt_family

model life table family to be used to retrieve single age survival information

logquad

if TRUE estimates lx functions from logquad models instead of using lt_family (default FALSE)

Value

data.frame with 5 elements: 'location_code': WPP 2019 location code 'location_name': WPP 2019 location name 'year' - reference period of fertility estimation in decimal format; 'TFR' - estimated total fertility rate; 'births' - estimated total number of births

Source

Moultrie TA, RE Dorrington, AG Hill, K Hill, IM Timæus and B Zaba (eds). 2013. Tools for Demographic Estimation. Paris: International Union for the Scientific Study of Population. demographicestimation.iussp.org

Examples


countries <- c( 32, 76, 380, 508, 752 ) # Argentina, Brazil, Italy, Mozambique, Sweden
FertRevSurvWPP( locations = countries, date_ref = 2010, lt_family = 'General' )



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