make_stationary_popn: Calculate an implied stationary population

Description Usage Arguments Details Value See Also Examples

View source: R/make_stationary_popn.R

Description

Calculation the stationary (ie zero growth rate) population implied by a given combination of total population size, life table Lx, and sex ratio.

Usage

1
2
3
4
5
6
7
make_stationary_popn(
  popn_size,
  Lx,
  sex_ratio,
  time_start = NULL,
  time_end = NULL
)

Arguments

popn_size

The total population size.

Lx

A Counts array with the life table Lx values.

sex_ratio

The number of male births per 100 female births.

time_start

First time point. Optional.

time_end

Last time point. Optional.

Details

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.

Value

A Counts object, with the same dimensions as Lx.

See Also

Lx_west, make_stationary_fert_rates

Examples

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)

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