Description Usage Arguments Details Value See Also Examples
View source: R/make_stationary_fert_rates.R
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.
1 | make_stationary_fert_rates(Lx, propn_age_fert, sex_ratio)
|
Lx |
A |
propn_age_fert |
A |
sex_ratio |
The number of male births per 100 female births. |
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"
.
A Values
object with
"age"
and "sex"
dimensions.
Lx_west
, propn_age_fert_booth
,
make_stationary_fert_rates
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.