Generating series of 1 step ahead forecasts from VAR model
Posted: Wed Oct 29, 2014 7:07 am
Hello all,
Please forgive the simplicity of my question as I am new to Eviews.
I have a data set covering the period 1993q1 to 2006q4. I am trying to generate a series of 1 step ahead ex-post forecasts starting from 2000q1 to 2006q4 using a VAR model. The idea is to estimate a VAR model using the sample 1993q1 to 1999q4 and generate a forecast for 2000q1, then estimate another VAR model with the sample 1993q1 to 2000q1 and generate a forecast for 2000q2, etc., repeating this step until the final date in the data set, then storing the resulting forecasts in a series.
My initial thought was to run the following code to estimate all the VAR models:
where lgdp and cci are the endogenous variables in the VAR.
However, I get an error message saying that var!i is not a valid name.
Could anyone provide help how I can estimate many VAR models by using a loop command, or suggest a better way on how to tackle this problem?
Thank you.
Please forgive the simplicity of my question as I am new to Eviews.
I have a data set covering the period 1993q1 to 2006q4. I am trying to generate a series of 1 step ahead ex-post forecasts starting from 2000q1 to 2006q4 using a VAR model. The idea is to estimate a VAR model using the sample 1993q1 to 1999q4 and generate a forecast for 2000q1, then estimate another VAR model with the sample 1993q1 to 2000q1 and generate a forecast for 2000q2, etc., repeating this step until the final date in the data set, then storing the resulting forecasts in a series.
My initial thought was to run the following code to estimate all the VAR models:
Code: Select all
for !i=0 to 24
smpl @first 1999q1+!i
var var01!i.ls lgdp cciHowever, I get an error message saying that var!i is not a valid name.
Could anyone provide help how I can estimate many VAR models by using a loop command, or suggest a better way on how to tackle this problem?
Thank you.