Description Usage Arguments Details Value See Also Examples
View source: R/make_stable_popn.R
Calculation the stable (ie constant age structure) population implied by a given combination of total population size, life table Lx, age-specific fertility rates, and sex ratio.
1 2 3 4 5 6 7 8 9 | make_stable_popn(
popn_size,
Lx,
fert_rates,
sex_ratio,
time_start = NULL,
time_end = NULL,
growth_rate = FALSE
)
|
popn_size |
The total population size. |
Lx |
A |
fert_rates |
Age-sex specific fertility rates |
sex_ratio |
The number of male births per 100 female births. |
time_start |
First time point. Optional. |
time_end |
Last time point. Optional. |
growth_rate |
If |
Lx
must be a Counts
array with two dimensions. The dimensions must have
dimtype
"age"
and "sex"
.
The "age"
dimension must have dimscale
"Intervals"
.
If time_start
and time_end
arguments
are supplied, a time dimension is added to the
result.
If growth_rate
is FALSE
(the default)
a Counts
object,
with the same dimensions as Lx
;
otherwise, a number.
Lx_west
,
make_stationary_popn
,
make_tfr_fert_rates
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | Lx <- dembase::Counts(Lx_west[ , , "10"])
propn_age_fert <- dembase::Values(propn_age_fert_booth)
fert_rates <- make_tfr_fert_rates(tfr = 5,
propn_age_fert = propn_age_fert,
sex_ratio = 105)
make_stable_popn(popn_size = 100,
Lx = Lx,
sex_ratio = 105,
fert_rates = fert_rates)
x <- make_stable_popn(popn_size = 100,
Lx = Lx,
sex_ratio = 105,
fert_rates = fert_rates,
time_start = 2000,
time_end = 2025)
make_stable_popn(popn_size = 100,
Lx = Lx,
sex_ratio = 105,
fert_rates = fert_rates,
growth_rate = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.