powered by
Extracts the residuals.
# S3 method for VAR residuals(object, ...)
A vector of fitted residuals.
A model for which forecasts are required.
Other arguments passed to methods
lung_deaths <- cbind(mdeaths, fdeaths) %>% as_tsibble(pivot_longer = FALSE) lung_deaths %>% model(VAR(vars(mdeaths, fdeaths) ~ AR(3))) %>% residuals()
Run the code above in your browser using DataLab