leslie_matrix | R Documentation |
Constructs the Leslie matrix needed for cohort component method
of population projection ccmpp()
.
leslie_matrix(survival, asfr, srb, n_ages, int, female)
survival |
[ |
asfr |
[ |
srb |
[ |
n_ages |
[ |
int |
[ |
female |
[ |
The Leslie matrix encodes two key pieces of information:
The survivorship ratio is included in the off diagonal to age the
population in each age group a
at time t
to age group
a + int
at time t + int
.
When projecting the female population, the first row includes information
about age-specific fertility rates, maternal survivorship ratios, birth
survivorship ratios and the sex-ratio at birth to calculate the initial
population size of the youngest age group at time t + int
.
See the references for more information.
[matrix(n_ages, n_ages)
]
Preston, Samuel, Patrick Heuveline, and Michel Guillot. 2001. Demography: Measuring and Modeling Population. Wiley.
leslie <- leslie_matrix(
survival = thailand_initial_estimates$survival[year_start == 1960 &
sex == "female", value],
asfr = c(rep(0, 3),
thailand_initial_estimates$asfr[year_start == 1960, value],
rep(0, 7)),
srb = thailand_initial_estimates$srb[year_start == 1960, value],
n_ages = 17, int = 5, female = TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.