forecast_opts {EpiNow2} | R Documentation |
Forecast options
Description
Defines a list specifying the arguments passed to underlying stan
backend functions via
stan_sampling_opts()
and stan_vb_opts()
. Custom
settings can be supplied which override the defaults.
Usage
forecast_opts(horizon = 7, accumulate)
Arguments
horizon |
Numeric, defaults to 7. Number of days into the future to forecast. |
accumulate |
Integer, the number of days to accumulate in forecasts, if any. If not given and observations are accumulated at constant frequency in the data used for fitting then the same accumulation will be used in forecasts unless set explicitly here. |
Value
A <forecast_opts>
object of forecast setting.
See Also
fill_missing
Examples
forecast_opts(horizon = 28, accumulate = 7)
[Package EpiNow2 version 1.7.1 Index]