fert_pasfr: fertility computation helper functions for WPP

View source: R/fert_helper_functions_wpp.R

fert_pasfrR Documentation

fertility computation helper functions for WPP

Description

This function computes the percentage age-specific fertility rates from the age-specific fertility rates of a given period.

Usage

fert_pasfr(fert_data_age, byvar)

Arguments

fert_data_age

data frame. columns "age_start" and "age_span" describe age group of mother and "value" is age-specific fertility rates in births per woman.

byvar

character. string of column names in fert_data_age by which pasfr will be computed.

Details

Compute percentage age-specific fertility rates from age-specific fertility rates

accomodates any width of age interval (age_span) so long as it is constant over age.

Value

a data frame with percentage age specific fertility rates in the "value" field, computed by byvar columns and age_start, age_span. Sums to 100 for each combination of byvar.

Author(s)

Sara Hertog


markalava/ccmppWPP documentation built on April 21, 2022, 12:36 a.m.