Skip to contents

Function to prepare the model initial state.

Usage

make_initial_state(country, initial_state_manual)

Arguments

country

A country or territory object of class <daedalus_country>, or a country or territory name from those included in the package; see country_names. Country-specific data such as the community and workplace contacts, the demography, and the distribution of the workforce into economic sectors is automatically accessed from package data for the relevant country name if it is passed as a string. To override package defaults for country characteristics, pass a <daedalus_country> object instead. See daedalus_country() for more.

initial_state_manual

An optional named list with the names p_infectious and p_asymptomatic for the proportion of infectious and symptomatic individuals in each age group and economic sector. Defaults to 1e-6 and 0.0 respectively.

Value

An array with as many dimensions as N_ECON_STRATA (currently, 46) with each layer giving the proportion of individuals of each group in each epidemiological compartment.