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
inzightts
object representing the time series.- var
A character vector specifying the variable(s) to forecast, or set to
NULL
to 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
TRUE
for a multiplicative model, orFALSE
for the default additive model.- pred_model
The name of a
fable
model 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_frct
object 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.