| residuals.AR {fable} | R Documentation |
Extracts the residuals.
## S3 method for class 'AR'
residuals(object, type = c("innovation", "regression"), ...)
object |
The time series model used to produce the forecasts |
type |
The type of residuals to extract. |
... |
Additional arguments for forecast model methods. |
A vector of fitted residuals.
as_tsibble(lh) %>% model(AR(value ~ order(3))) %>% residuals()