View source: R/mutate_model_output.R
This function processes the model output and creates new variables that are needed for metrics of interest. The output from this function is another dataframe / tibble.
1 | mutate_model_output(df, pop, start_date = NULL, report_lag = 0, pop_prop)
|
df |
Dataframe Output from COVIDmodel. The input data frame must have a row that represents each experiment and time point within the experiment. The columns must contain the parameter combinations that were used for each experiment and time point, as well as basic model output showing the numbers in each compartment at a given time. |
pop |
Integer The size of the modeled population |
start_date |
Date This is the start date for the local epidemic and it is used for adding a date column to the output. |
report_lag |
Integer This is the number of days we assume pass between the infection and when it is first reported. |
pop_prop |
Vector This vector contains population proportions for sub-populations |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.