Internals of Format vaccine model output as data.frame

format_internal(x, compartments, summaries, reduce_age, index, time, replicate)

Arguments

x

squire_simulation object

compartments

Vector of compartment names, e.g. c("S", "R"), or sub-compartment names, e.g. c("S", "E1", "E2")

summaries

Vector of summary names, which may be:

  • "deaths" Deaths per day

  • "infections" Infections per day. New infections (note this is currently a slightly different definitionto the main Squire mode)

  • "hospitilisations" Hospitalisations per day (Note this takes into account hospital capacity)

  • "hospital_occupancy" Occupied Hospital Beds

  • "ICU_occupancy" Occupied ICU Beds

  • "hospital_demand Required Hospital Beds

  • "ICU_demand Required ICU Beds

  • "vaccinated" Vaccines administered per day

reduce_age

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

index

odin ouput index

time

time vector

replicate

outpu replicate number