R/combine_to_age_model.R
combine_to_age_model.Rd
Similarly to combine_strat_model_output
this functions
reduces the dimension of model output into just the demographic components.
combine_to_age_model(
df,
age_com = NULL,
compartments = NULL,
hold_out_var = NULL,
total_pop = TRUE
)
A dataframe of model output.
Integer indicating the number of age compartments.
A character vector of the disease model compartments to combine.
A character vector specifying the variables to keep unchanged. Defaults to NULL
A logical indicating whether to calculate the total population. Defaults to true.
A dataframe which summarises the demographic process of a model.
combine_strat_model_output