initial_population: Initial Population

View source: R/tmb.R

initial_populationR Documentation

Initial Population

Description

infected is the multiplier of the normalized infected components of the eigenvector. total - infected is multiplied by 1/length(initial_susceptible)

Usage

initial_population(model, total, infected)

Arguments

model

flexmodel object

total

name of a single parameter to represent the total size of the population – over all compartments

infected

name of a single parameter to represent the initial total size of the infected population – over all infected compartments

Details

In the future we might want the ability to specify a distribution across susceptible compartments – currently a uniform distribution is assumed..

Value

updated flexmodel object

See Also

Other flexmodel_definition_functions: add_factr(), add_linearized_outflow(), add_parallel_accumulators(), add_rate(), add_state_mappings(), add_state_param_sum(), mat_rate(), rep_rate(), update_disease_free_state(), update_linearized_params(), update_tmb_indices(), vec_rate()


bbolker/McMasterPandemic documentation built on Aug. 25, 2024, 6:35 p.m.