obtain_init_pop: Obtain initial population

Description Usage Arguments Value

View source: R/01_model_inputs_functions.R

Description

obtain_init_pop generates the number of people at each compartment by age group.

Usage

 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
)

Arguments

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.

Value

An array with the initial population at each class by age group.


SC-COSMO/sccosmomcma documentation built on Dec. 18, 2021, 11:56 a.m.