h-step in-sample forecasts for time series models.
Source:R/arfima.R
, R/arima.R
, R/bats.R
, and 4 more
fitted.Arima.Rd
Returns h-step forecasts for the data used in fitting the model.
Usage
# 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, ...)
Arguments
- object
An object of class "
Arima
", "bats
", "tbats
", "ets
" or "nnetar
".- h
The number of steps to forecast ahead.
- ...
Other arguments.