Question: a) Using the VAR function in the vars package, fit a multivariate VAR model to the four economic variables in the Canadian data (which can
a) Using the VAR function in the vars package, fit a multivariate VAR model to the four economic variables in the Canadian data (which can be loaded from within the vars package with the command data(Canada)).
b) Using the fitted VAR model, make predictions for the next year. Add these predictions to a time series plot of each variable.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
