generate_population | R Documentation |
Simulate future age-specific population given a starting population and models for fertility, mortality, and migration. If any model is NULL, it is assumed there are no future births, deaths or net migrants, respectively. This is an experimental function and has not been thoroughly tested.
generate_population(
starting_population,
mortality_model = NULL,
fertility_model = NULL,
migration_model = NULL,
h = 10,
n_reps = 1000,
female = NULL
)
starting_population |
A |
mortality_model |
A |
fertility_model |
A |
migration_model |
A |
h |
The forecast horizon equal to the number of years to simulate into the future. |
n_reps |
The number of replicates to simulate. |
female |
A character string giving the name used for females in the sex
variable of the |
A vital
object containing the simulated future population.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.