Get predicted setting specific as well as combined contact matrices
estimate_setting_contacts.Rd
Given a named list of contact datasets (with names giving
the setting, and assumed to together make up the full set of contacts for
individuals in the survey), a representative population distribution for
the survey, and a set of age breaks at which to aggregate contacts, return
a set of predicted contact matrices for each setting, and for all combined.
Note that this function is parallelisable with future
, and will be
impacted by any future
plans provided.
Usage
estimate_setting_contacts(
contact_data_list,
survey_population,
prediction_population = survey_population,
age_breaks,
per_capita_household_size = NULL
)
Arguments
- contact_data_list
list of data sets with information on the contacts of individuals at different settings
- survey_population
representative population distribution for the survey
- prediction_population
population for prediction. The default value set is survey_population
- age_breaks
vector depicting age values. For example,
c(seq(0, 75, by = 5), Inf)
- per_capita_household_size
Optional (defaults to NULL). When set, it adjusts the household contact matrix by some per capita household size. To set it, provide a single number, the per capita household size. More information is provided below in Details. See
get_per_capita_household_size()
function for a helper for Australian data with a workflow on how to get this number.
Examples
if (FALSE) {
# takes a long time to run
settings_estimated_contacts <- estimate_setting_contacts(
contact_data_list = get_polymod_setting_data(),
survey_population = get_polymod_population(),
prediction_population = get_polymod_population(),
age_breaks = c(seq(0, 75, by = 5), Inf),
per_capita_household_size = NULL
)
}