[Questioning] 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
)

Arguments

estimates

List of data frames as output by estimate_infections

forecast

A list of data frames as output by forecast_infections

delays

A call to delay_opts() defining delay distributions and options. See the documentation of delay_opts() and the examples below for details.

CrIs

Numeric vector of credible intervals to calculate.

target_folder

Character string specifying where to save results (will create if not present).

samples

Logical, defaults to TRUE. Should samples be saved

Value

A list of samples and summarised estimates of estimated cases by date of report