pseudo out of sample with VECM?
Posted: Wed Aug 04, 2010 1:02 am
hi,
I want to create a pseudo out of sample forecast with a VEC model. But I don't know, how I can save the forecasted values...
Here is a try:
'set sample to modified range
smpl 1994Q3 2010Q1
'define range of pseudo-out-of-sample forecasts (number of periods)
for !horizon=1 to 20
'define sample for initial estimation (automatic update)
smpl 1994Q3 2004Q4+!horizon-1
'define regression
var macro1.ec 1 1 ln_bra_bip ln_oilprice
'define first period for poos forecast (automatic update)
smpl 2005Q1+!horizon-1 2005Q1+!horizon-1
How can I create the forecast and save the estimated values in a vector?
next
I want to create a pseudo out of sample forecast with a VEC model. But I don't know, how I can save the forecasted values...
Here is a try:
'set sample to modified range
smpl 1994Q3 2010Q1
'define range of pseudo-out-of-sample forecasts (number of periods)
for !horizon=1 to 20
'define sample for initial estimation (automatic update)
smpl 1994Q3 2004Q4+!horizon-1
'define regression
var macro1.ec 1 1 ln_bra_bip ln_oilprice
'define first period for poos forecast (automatic update)
smpl 2005Q1+!horizon-1 2005Q1+!horizon-1
How can I create the forecast and save the estimated values in a vector?
next