Description Usage Arguments Value
View source: R/01_model_inputs_functions.R
obtain_init_pop
generates the number of people at each compartment by
age group.
1 2 3 4 5 6 7 8 9 10 11 12 | obtain_init_pop(
v_init_age_grps = c(0, 5, 15, 25, 45, 55, 65, 70),
v_inf_init_ages,
v_names_ages,
n_ages,
v_names_states,
n_states,
ctry = "Italy",
ste = NULL,
cty = NULL,
year = 2020
)
|
v_init_age_grps |
Vector with initial ages of age groups. |
v_inf_init_ages |
Vector with number of individuals in first infectious class for each age group. |
v_names_ages |
Vector with age groups. |
n_ages |
Number of age groups. |
v_names_states |
Vector with names of compartment states. |
n_states |
Number of compartment states. |
ctry |
Country. |
ste |
State. |
cty |
County or municipality. |
year |
Year. |
An array with the initial population at each class by age group.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.