powered by
Extracts the fitted values.
# S3 method for VAR fitted(object, ...)
A vector of fitted values.
The time series model used to produce the forecasts
Additional arguments for forecast model 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