Usage
"forecast"(object, newdata, h = 10, level = c(80, 95), fan = FALSE, lambda = object$lambda, biasadj = FALSE, ts = TRUE, ...)
Arguments
object
Object of class "mlm", usually the result of a call to lm
or tslm
. newdata
An optional data frame in which to look for variables with which to predict. If omitted, it is assumed that the only variables are trend and season, and h
forecasts are produced.
level
Confidence level for prediction intervals.
fan
If TRUE
, level is set to seq(51,99,by=3). This is suitable for fan plots.
h
Number of periods for forecasting. Ignored if newdata
present.
lambda
Box-Cox transformation parameter. Ignored if NULL
. Otherwise, forecasts back-transformed via an inverse Box-Cox transformation.
biasadj
Use adjusted back-transformed mean for Box-Cox transformations. If TRUE, point forecasts and fitted values are mean forecast. Otherwise, these points can be considered the median of the forecast densities.
ts
If TRUE
, the forecasts will be treated as time series provided the original data is a time series; the newdata
will be interpreted as related to the subsequent time periods. If FALSE
, any time series attributes of the original data will be ignored.