pseudo out of sample with VECM?

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

FriedrM9
Posts: 3
Joined: Thu Jul 29, 2010 11:06 pm

pseudo out of sample with VECM?

Postby FriedrM9 » 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

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13603
Joined: Tue Sep 16, 2008 5:38 pm

Re: pseudo out of sample with VECM?

Postby EViews Gareth » Wed Aug 04, 2010 8:10 am

To forecast from a VAR you'll have to make it into a model, then solve the model over the period you wish to forecast.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests