View source: R/combine_to_age_model.R
combine_to_age_model | R Documentation |
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 )
df |
A dataframe of model output. |
age_com |
Integer indicating the number of age compartments. |
compartments |
A character vector of the disease model compartments to combine. |
hold_out_var |
A character vector specifying the variables to keep unchanged. Defaults to NULL |
total_pop |
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
df <- data.frame(S1 = c(1,2), S2 = c(1, 3), E1 = c(4, 1), E2 = c(3, 4), time = c(1, 2)) combine_to_age_model(df, age_com = 2, hold_out_var = "time")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.