View source: R/fert_helper_functions_wpp.R
fert_pasfr | R Documentation |
This function computes the percentage age-specific fertility rates from the age-specific fertility rates of a given period.
fert_pasfr(fert_data_age, byvar)
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. |
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.
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.
Sara Hertog
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.