Fit all-of-polymod model and extrapolate to a given population an age breaks
extrapolate_polymod.Rd
Uses estimate_setting_contacts()
to fit a contact model on the data from
polymod and later extrapolate on to a desired population. Note that this
function is parallelisable with future
, and will be impacted by any
future
plans provided.
Arguments
- population
a
conmat_population
object, specifying theage
andpopulation
characteristics. Or a data frame withlower.age.limit
andpopulation
columns. Seeget_polymod_population()
for an example of this data.- age_breaks
vector depicting age values. Default value is
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) {
polymod_population <- get_polymod_population()
synthetic_settings_5y_polymod <- extrapolate_polymod(
population = polymod_population
)
synthetic_settings_5y_polymod
synthetic_settings_5y_fairfield <- extrapolate_polymod(
population = abs_age_lga("Fairfield (C)")
)
synthetic_settings_5y_fairfield
}