- primary
a data frame of primary reports (column primary
) by date
(column date
). Column primary
must be numeric and date
must be in
date format. it will be assumed that primary
is zero on the missing
days.
- day_of_week_effect
either NULL
(no day of the week effect) or a
numerical vector of length specified in obs_opts()
as week_length
(default: 7) if week_effect
is set to TRUE. Each element of the vector
gives the weight given to reporting on this day (normalised to 1).
The default is NULL
.
- secondary
A call to secondary_opts()
or a list containing the
following binary variables: cumulative, historic, primary_hist_additive,
current, primary_current_additive. These parameters control the structure of
the secondary model, see secondary_opts()
for details.
- 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.
- obs
A list of options as generated by obs_opts()
defining the
observation model. Defaults to obs_opts()
.
- CrIs
Numeric vector of credible intervals to calculate.
- backend
Character string indicating the backend to use for fitting
stan models. Supported arguments are "rstan" (default) or "cmdstanr".
- ...
deprecated; only included for backward compatibility