Initialize a model (agents and network).
setup_model( agent_count, age_dist, p_female, seir_dist, p_med_cond, p_symptomatic, trans_df = NULL, prog_df = NULL, home_nw_params = NULL, social_nw_params = NULL, work_nw_params = NULL )
agent_count | The number of agents to generate parameters for. |
---|---|
age_dist | A function to sample from a probability distribution or else a vector or list of ages. The vector will be repeated if necessary to produce enough agents. |
p_female | A probability of being female or else a vector or list of
sexes ("M" or "F") or logical ( |
seir_dist | A function to sample from a probability distribution or else a vector or list of SEIR statuses ("S", "E", "I", or "R"). The vector will be repeated if necessary to produce enough agents. |
p_med_cond | A probability of having a medical condition or else a
vector or list of medical conditions (logical: |
p_symptomatic | A probability of being symptomatic if infectious, or
else a vector or list of symptomatic status if infectious
(logical: |
trans_df | A data frame of parameters for disease transmission probability distributions. Columns are:
|
prog_df | A data frame of parameters for disease progression probability distributions. Columns are:
|
home_nw_params | A named list with parameters for the home-contacts network. The list should have elements:
|
social_nw_params | A named list with parameters for social contacts. |
work_nw_params | A named list with parameters for work contacts. |
A named list of the model: agents, network, contagion probabilities for disease transmission, and transition probabilities for progress to the next stage of the disease.
# ADD_EXAMPLES_HERE