mutate_model_output: This function processes the model output and creates new...

Description Usage Arguments

View source: R/mutate_model_output.R

Description

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.

Usage

1
mutate_model_output(df, pop, start_date = NULL, report_lag = 0, pop_prop)

Arguments

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


wimmyteam/conisi documentation built on Oct. 30, 2021, 4:11 p.m.