Either extracts or converts reported cases from an input data table. For output from
estimate_infections
this is a simple filtering step but for output from forecast_infection
this is currently an approximate convolution. This step is likely to be updated/deprecated
in new releases as forecast_infections
evolves to be based on stan
functionality.
estimates_by_report_date(
estimates,
forecast,
delays,
CrIs = c(0.2, 0.5, 0.9),
target_folder = NULL,
samples = TRUE
)
List of data frames as output by estimate_infections
A list of data frames as output by forecast_infections
A call to delay_opts()
defining delay distributions and options. See the documentation of delay_opts()
and the examples below for details.
Numeric vector of credible intervals to calculate.
Character string specifying where to save results (will create if not present).
Logical, defaults to TRUE. Should samples be saved
A list of samples and summarised estimates of estimated cases by date of report