- data
A <data.frame>
of confirmed cases (confirm) by date
(date). confirm
must be numeric and date
must be in date format.
- generation_time
A call to gt_opts()
(or its alias
generation_time_opts()
) defining the generation time distribution used.
For backwards compatibility a list of summary parameters can also be passed.
- delays
A call to delay_opts()
defining delay distributions and
options. See the documentation of delay_opts()
and the examples below for
details.
- truncation
A call to trunc_opts()
defining the truncation of
the observed data. Defaults to trunc_opts()
, i.e. no truncation. See the
estimate_truncation()
help file for an approach to estimating this from
data where the dist
list element returned by estimate_truncation()
is
used as the truncation
argument here, thereby propagating the uncertainty
in the estimate.
- rt
A list of options as generated by rt_opts()
defining Rt
estimation. Defaults to rt_opts()
. To generate new infections using
the non-mechanistic model instead of the renewal equation model, use
rt = NULL
. The non-mechanistic model internally uses the setting
rt = rt_opts(use_rt = FALSE, future = "project", gp_on = "R0")
.
- backcalc
A list of options as generated by backcalc_opts()
to
define the back calculation. Defaults to backcalc_opts()
.
- gp
A list of options as generated by gp_opts()
to define the
Gaussian process. Defaults to gp_opts()
. Set to NULL
to disable the
Gaussian process.
- obs
A list of options as generated by obs_opts()
defining the
observation model. Defaults to obs_opts()
.
- stan
A list of stan options as generated by stan_opts()
. Defaults
to stan_opts()
. Can be used to override data
, init
, and verbose
settings if desired.
- horizon
Numeric, defaults to 7. Number of days into the future to
forecast.
- CrIs
Numeric vector of credible intervals to calculate.
- filter_leading_zeros
Logical, defaults to TRUE. Should zeros at the
start of the time series be filtered out.
- zero_threshold
Numeric defaults
to Inf. Indicates if detected zero cases are meaningful by using a threshold
number of cases based on the 7-day average. If the average is above this
threshold then the zero is replaced using fill
.
- weigh_delay_priors
Logical. If TRUE (default), all delay distribution
priors will be weighted by the number of observation data points, in doing so
approximately placing an independent prior at each time step and usually
preventing the posteriors from shifting. If FALSE, no weight will be applied,
i.e. delay distributions will be treated as a single parameters.
- id
A character string used to assign logging information on error.
Used by regional_epinow()
to assign errors to regions. Alter the default to
run with error catching.
- verbose
Logical, defaults to TRUE
when used interactively and
otherwise FALSE
. Should verbose debug progress messages be printed.
Corresponds to the "DEBUG" level from futile.logger
. See setup_logging
for more detailed logging options.
- reported_cases
Deprecated; use data
instead.