make_stationary_fert_rates: Calculate the fertility rates that would produce a stationary...

Description Usage Arguments Details Value See Also Examples

View source: R/make_stationary_fert_rates.R

Description

Given a set of Lx, and an age pattern for fertility, calculate the age-sex-specific fertility rates that would produce a stationary (ie zero growth rate) population.

Usage

1
make_stationary_fert_rates(Lx, propn_age_fert, sex_ratio)

Arguments

Lx

A Counts array with the life table Lx values.

propn_age_fert

A Values with the age-distribution of fertility rates.

sex_ratio

The number of male births per 100 female births.

Details

Lx must be a Counts array with two dimensions. The dimensions of Lx must have dimtype "age" and "sex". The "age" dimension must have dimscale "Intervals".

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

Lx_west, propn_age_fert_booth, make_stationary_fert_rates

Examples

1
2
3
4
5
Lx <- dembase::Counts(Lx_west[ , , "10"])
propn_age_fert <- dembase::Values(propn_age_fert_booth)
make_stationary_fert_rates(Lx = Lx,
                           propn_age_fert = propn_age_fert,
                           sex_ratio = 105)

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