Generates future predictions of the time series from an inzightts object.
The output object includes predicted means, prediction intervals, raw data,
and fitted values.
Arguments
- object
An
inzighttsobject representing the time series.- var
A character vector specifying the variable(s) to forecast, or set to
NULLto forecast all variables.- h
The forecast horizon, either the number of observations to predict, or a character string specifying the time interval to predict (e.g.,
"2 years").- mult_fit
Logical; set to
TRUEfor a multiplicative model, orFALSEfor the default additive model.- pred_model
The name of a
fablemodel function or"auto".- confint_width
A decimal representing the width of the prediction interval.
- model_range
The range of data to be used for fitting forecasts, specified as dates or years.
- ...
Additional arguments (ignored).
- x
An
inz_frctobject containing the forecasts.- t_range
The range of data to be plotted, specified as dates or years.
- xlab
A title for the x-axis of the plot.
- ylab
A title for the y-axis of the plot.
- title
A title for the graph.