Convolves latent infections to reported cases via an observation model.
Likely to be removed/replaced in later releases by functionality drawing on
the
stan
implementation.
report_cases(
case_estimates,
case_forecast = NULL,
delays,
type = "sample",
reporting_effect,
CrIs = c(0.2, 0.5, 0.9)
)
A list of data.table
s. The first entry contains the following
variables sample
, date
and cases
with the second being summarised
across samples.
A data.table of case estimates with the following variables: date, sample, cases
A data.table of case forecasts with the following variables: date, sample, cases. If not supplied the default is not to incorporate forecasts.
A call to delay_opts()
defining delay distributions and
options. See the documentation of delay_opts()
and the examples below for
details.
Character string indicating the method to use to transform counts. Supports either "sample" which approximates sampling or "median" would shift by the median of the distribution.
A data.table
giving the weekly reporting effect
with the following variables: sample
(must be the same as in nowcast
),
effect
(numeric scaling factor for each weekday),day
(numeric 1 - 7
(1 = Monday and 7 = Sunday)). If not supplied then no weekly reporting
effect is assumed.
Numeric vector of credible intervals to calculate.