Skip to contents

This function takes the raw stan output from the aggregated model and arranges them in a tidy data format, with time as an indexing variable.

Usage

get_generated_quantities_draws(all_draws, model_type, n_draws = 100)

Arguments

train_data

Value

A long dataframe with model draws from pred_hosp, pred_ww, R(t) and p_hosp(t), where all have one value per time point and draw. The resulting dataframe has the following columns: name, t, value, draw