forecast (version 7.0)

fitted.Arima: One-step in-sample forecasts using ARIMA models

Description

Returns one-step forecasts for the data used in fitting the ARIMA model.

Usage

## S3 method for class 'Arima':
fitted(object, biasadj=FALSE, ...)

Arguments

object
An object of class "Arima". Usually the result of a call to arima.
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.
...
Other arguments.

Value

  • A time series of the one-step forecasts.

See Also

forecast.Arima.

Examples

Run this code
fit <- Arima(WWWusage,c(3,1,0))
plot(WWWusage)
lines(fitted(fit),col=2)

Run the code above in your browser using DataLab