I'm looking to compare a `direct' bi-variate single equation forecast and an 'iterated multi-step' (IMS) forecast from a bi-variate VAR, similar to papers such as http://research.stlouisfed.org/wp/2010/2010-033.pdf and the paper by Massimo, Stock and Watson quoted elsewhere on the forum. Is it possible for any of the local EViews forecast experts to tell me if the following example program is doing what I intend (for an arbitrary - h=12 horizon)?
Code: Select all
wfcreate m 1900 2000
genr x = nrnd
genr y = nrnd
!h = 12
series z=x(12)
smpl 1920m1 1974m12
var var1.ls 1 2 x y
smpl 1920m1 1974m12+!h
equation eq1.ls z c z(-13) z(-14) y(-1) y(-2)
smpl 1975m1 1975m1+!h-1
var1.fcast _fvarforecast
eq1.forecast(f=na) x_feqforecast
scalar rmse1 = @rmse(x_fvarforecast,x)
scalar rmse2 = @rmse(x_feqforecast,x)
plot x x_fvarforecast x_feqforecastCode: Select all
wfcreate m 1900 2000
genr x = nrnd
genr y = nrnd
!h = 12
series z=x(12)
smpl 1920m1 1974m12
var var1.ls 1 2 x y
smpl 1920m1 1974m12
equation eq2.ls x c x(-1) x(-2) y(-1) y(-2)
smpl 1975m1 1975m1+!h-1
var1.fcast _fvarforecast
eq2.forecast(f=na) x_feqforecast
scalar rmse1 = @rmse(x_fvarforecast,x)
scalar rmse2 = @rmse(x_feqforecast,x)
plot x x_fvarforecast x_feqforecastAs always, eteranlly grateful for your help.
Best wishes,
Charlie
