
Create summary output from infection estimation objects
Source:R/create.R
create_infection_summary.RdThis function creates summary output from infection estimation objects
(either estimate_infections or forecast_infections). It is used
internally by summary.estimate_infections() and
summary.forecast_infections() to provide a consistent summary interface.
Arguments
- object
An infection estimation object (either from
estimate_infections()orforecast_infections()).- type
A character vector of data types to return. Defaults to "snapshot" but also supports "parameters". "snapshot" returns a summary at a given date (by default the latest date informed by data). "parameters" returns summarised parameter estimates that can be further filtered using
paramsto show just the parameters of interest and date.- target_date
Date, defaults to maximum found in the data if not specified.
- params
A character vector of parameters to filter for.
- CrIs
Numeric vector of credible intervals to calculate. Defaults to c(0.2, 0.5, 0.9).
- ...
Additional arguments passed to
report_summary().
Value
A <data.frame> of summary output, either a snapshot summary
(via report_summary()) or parameter summaries (via
calc_summary_measures()).