Extracts the residuals.

# S3 method for ARIMA
residuals(object, type = c("innovation", "regression"),
...)

## Arguments

object The time series model used to produce the forecasts The type of the residuals to extract. Additional arguments for forecast model methods.