powered by
Returns h-step forecasts for the data used in fitting the model.
# S3 method for ARFIMA fitted(object, h = 1, ...)# S3 method for Arima fitted(object, h = 1, ...)# S3 method for ar fitted(object, ...)# S3 method for bats fitted(object, h = 1, ...)# S3 method for ets fitted(object, h = 1, ...)# S3 method for modelAR fitted(object, h = 1, ...)# S3 method for nnetar fitted(object, h = 1, ...)# S3 method for tbats fitted(object, h = 1, ...)
# S3 method for Arima fitted(object, h = 1, ...)
# S3 method for ar fitted(object, ...)
# S3 method for bats fitted(object, h = 1, ...)
# S3 method for ets fitted(object, h = 1, ...)
# S3 method for modelAR fitted(object, h = 1, ...)
# S3 method for nnetar fitted(object, h = 1, ...)
# S3 method for tbats fitted(object, h = 1, ...)
A time series of the h-step forecasts.
An object of class "Arima", "bats", "tbats", "ets" or "nnetar".
Arima
bats
tbats
ets
nnetar
The number of steps to forecast ahead.
Other arguments.
Rob J Hyndman & Mitchell O'Hara-Wild
forecast.Arima, forecast.bats, forecast.tbats, forecast.ets, forecast.nnetar, residuals.Arima, residuals.bats, residuals.tbats, residuals.ets, residuals.nnetar.
forecast.Arima
forecast.bats
forecast.tbats
forecast.ets
forecast.nnetar
residuals.Arima
residuals.bats
residuals.tbats
residuals.ets
residuals.nnetar
fit <- ets(WWWusage) plot(WWWusage) lines(fitted(fit), col='red') lines(fitted(fit, h=2), col='green') lines(fitted(fit, h=3), col='blue') legend("topleft", legend=paste("h =",1:3), col=2:4, lty=1)
Run the code above in your browser using DataLab