Description Usage Arguments Details Value See Also Examples
View source: R/make_stationary_popn.R
Calculation the stationary (ie zero growth rate) population implied by a given combination of total population size, life table Lx, and sex ratio.
1 2 3 4 5 6 7 | make_stationary_popn(
popn_size,
Lx,
sex_ratio,
time_start = NULL,
time_end = NULL
)
|
popn_size |
The total population size. |
Lx |
A |
sex_ratio |
The number of male births per 100 female births. |
time_start |
First time point. Optional. |
time_end |
Last time point. Optional. |
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.
A Counts
object,
with the same dimensions as Lx
.
Lx_west
,
make_stationary_fert_rates
1 2 3 4 5 6 7 8 9 | Lx <- dembase::Counts(Lx_west[ , , "10"])
make_stationary_popn(popn_size = 100,
Lx = Lx,
sex_ratio = 105)
make_stationary_popn(popn_size = 100,
Lx = Lx,
sex_ratio = 105,
time_start = 2000,
time_end = 2010)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.