make_tfr_fert_rates: Calculate the age-specific fertility rates that produce a...

Description Usage Arguments Details Value See Also Examples

View source: R/make_tfr_fert_rates.R

Description

Given an age pattern for fertility and a sex ratio at birth, calculate the age-sex-specific fertility rates that would yield a target total fertility rate (TFR).

Usage

1
make_tfr_fert_rates(tfr, propn_age_fert, sex_ratio)

Arguments

tfr

The target total fertility rate. A positive number.

propn_age_fert

A Values with the age-distribution of fertility rates.

sex_ratio

The number of male births per 100 female births.

Details

propn_age_fert must be a Counts array, with a single dimension. The dimension must have dimtype "age", and dimscale "Intervals".

Value

A Values object with "age" and "sex" dimensions.

See Also

propn_age_fert_booth,

Examples

1
2
3
4
propn_age_fert <- dembase::Values(propn_age_fert_booth)
make_tfr_fert_rates(tfr = 5,
                    propn_age_fert = propn_age_fert,
                    sex_ratio = 105)

johnrbryant/agesim documentation built on Dec. 31, 2021, 11:56 a.m.