FetchFertilityWpp2019: Retrieve Fertility Pattern from WPP 2019

View source: R/wpp_fetch.R

FetchFertilityWpp2019R Documentation

Retrieve Fertility Pattern from WPP 2019

Description

Retrieve age-specific fertility rates for available WPP 2019 locations

Usage

FetchFertilityWpp2019(locations = NULL, year)

Arguments

locations

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

year

desired reference year to fetch fertility information (numeric)

Value

data.frame with five columns: 'location_code': WPP 2019 location code 'location_name': WPP 2019 location name 'age': women ages in five-year age groups from 10 to 45; 'asfr': interpolated age-specific fertility rates for desired year 'asfr_std': proportional age-specific fertility rates for desired year (sum(asfr_std*5) = 1)

Examples


# Fertility pattern for Taiwan 2007
FetchFertilityWpp2019( locations = 158, year = 2007 )

# Fertility pattern for Peru and Paraguay 1994
FetchFertilityWpp2019( locations = c( 604, 600 ), year = 1994 )

# Fertility pattern for Italy and Australia 2002 (using names)
FetchFertilityWpp2019( locations = c( 'Italy', 'Australia'), year = 2002)



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