powered by
Extracts the residuals.
# S3 method for RW residuals(object, ...)
A vector of fitted residuals.
A model for which forecasts are required.
Other arguments passed to methods
as_tsibble(Nile) %>% model(NAIVE(value)) %>% residuals() library(tsibbledata) aus_production %>% model(snaive = SNAIVE(Beer ~ lag("year"))) %>% residuals()
Run the code above in your browser using DataLab