View source: R/fert_helper_functions_wpp.R
fert_net | R Documentation |
This function computes the net reproductive rate from the age-specific fertility rates and sex ratio at birth and female life table nLx of a given period.
fert_net(fert_data_age, srb, nLx, 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. |
srb |
data frame. column "value" is the sex ratio at birth |
nLx |
data frame. columns "age_start" and "age_span" describe age group of mother and "value" is the nLx column of the period life table for females |
byvar |
character. string of column names in fert_data_age, srb and nLx by which NRR will be computed. |
accomodates any width of age interval (age_span) so long as it is constant over age. Assumes radix (l0) = 100000.
a data frame with net reproductive rate in the "value" field, computed by byvar columns.
Sara Hertog
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.