format | R Documentation |
Take raw odin vaccine model output and formats in long format with the option to select variables and summarise over age groups. Output variables are ordered as in argument ordering.
format( x, compartments = c("S", "E", "IMild", "ICase", "IICU", "IHospital", "IRec", "R", "D"), summaries = c("N", "hospitalisations", "hospital_demand", "hospital_occupancy", "ICU_demand", "ICU_occupancy", "vaccines", "unvaccinated", "vaccinated", "priorvaccinated", "infections", "deaths"), reduce_age = TRUE, date_0 = NULL, replicate = 1 )
x |
squire_simulation object |
compartments |
Vector of compartment names, e.g. |
summaries |
Vector of summary names, which may be:
|
reduce_age |
Collapse age-dimension, calculating the total in the compartment. |
date_0 |
Date of time 0 (e.g. "2020-03-01"), if specified a date column will be added |
replicate |
Which replicate is being formatted. Default = 1 |
Formatted long data.frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.