Learn R Programming

EpiNow2 (version 1.7.1)

forecast_opts: Forecast options

Description

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

Value

A <forecast_opts> object of forecast setting.

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.

See Also

fill_missing

Examples

Run this code
forecast_opts(horizon = 28, accumulate = 7)

Run the code above in your browser using DataLab