Question: # Assignment 1 2 library ( fpp 3 ) # 1 2 . 2 Fit VAR model with AICc and BIC for Consumption, Income, and
# Assignment
libraryfpp
# Fit VAR model with AICc and BIC for Consumption, Income, and Savings
fit uschange
model
aicc VARvarsConsumption Income, Savings
bic VARvarsConsumption Income, Savings ic "bic"
fit
glancefit
# ACF of the residuals
fit
augment
ACFinnov
autoplot
# VAR forecasts using the model suggested by AICc
forecastplots fit
selectaicc
forecasth years"
filteryearQuarter
autoplotuschange filteryearQuarter
forecastplots
if requireNamespacebroom quietly TRUE
install.packagesbroom
Use the model suggested by the AICc criterion to forecast the three variables. Choose yearQuarter
Paste here: the forecast plots for the three variables.
Run reportfit for the AICc suggested model. The output will show an estimated equation for each of the variables in the VAR model. Given the estimated coefficients, write out the VAR model similar to equations and Do not include the error terms.
Paste here: the reportfit output.
Compute the forecast values for consumption, income, and savings.
Paste here: The fable with the forecast values
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
