Format model output as data.frame

format_output(
  x,
  var_select = NULL,
  reduce_age = TRUE,
  combine_compartments = TRUE,
  date_0 = NULL
)

Arguments

x

squire_simulation object

var_select

Vector of compartment names, e.g. c("S", "R"). In addition a number of summary compartment can be requested. These include:

  • "deaths" Daily Deaths

  • "infections" Daily Infections

  • "hospital_occupancy" Occupied Hospital Beds

  • "ICU_occupancy" Occupied ICU Beds

  • "hospital_demand Required Hospital Beds

  • "ICU_demand Required ICU Beds

reduce_age

Collapse age-dimension, calculating the total in the compartment.

combine_compartments

Collapse compartments of same type together (e.g. E1 and E2 -> E)

date_0

Date of time 0, if specified a date column will be added

Value

Formatted long data.frame