nimue_format | R Documentation |
If a squire object is provided out it should be feed through to
squire::format_output
. However, please note that not all variables can
be selected for squire.
nimue_format(
out,
var_select = NULL,
reduce_age = TRUE,
combine_compartments = TRUE,
date_0 = NULL,
mean_over_80_age = 82.5,
case_to_infection_ratio = 0.195
)
out |
nimue_simulation or squire_simulation object |
var_select |
Vector of compartment names, e.g.
|
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 |
mean_over_80_age |
Mean age of over 80 population for calculating long covid incidence. Default = 82.5 |
case_to_infection_ratio |
Ratio of infections to cases for long covid calculation. Default = 0.195 from UK ONS analyses |
To better define the summaries related to the healthcare pathway:
The total number of requiring hospitalisation and ICU care at the given time, regardless of if they've received it
The total number of those who received ICU or hospital care at the given time
The total number of new people who require hospital or ICU care
Sum of new people recieving hospital or ICU care
Note: this is confusing and seemingly inconsistent i.e. hospital_incidence does not capture those recovering from ICU and hospitalisations is stated to equal the sum of the incidences elsewhere.
Formatted long data.frame
#generate some outputs for the afghanistan fit and pass through to format
#getting deaths and long covid estimates
## Not run:
generate_draws(afg_fit) %>%
nimue_format(var_select = c("deaths", "long_covid"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.