residuals.fable_theta {fable} | R Documentation |
Extracts the residuals.
## S3 method for class 'fable_theta'
residuals(object, ...)
object |
A model for which forecasts are required. |
... |
Other arguments passed to methods |
A vector of fitted residuals.
library(tsibbledata)
vic_elec %>%
model(avg = MEAN(Demand)) %>%
residuals()