powered by
Extracts the fitted values.
# S3 method for VAR fitted(object, ...)
A vector of fitted values.
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))) %>% fitted()
Run the code above in your browser using DataLab