Conditional forecast

Questions and discussions on Vector Autoregressions
luching
Posts: 64
Joined: Mon Jun 07, 2010 4:05 pm

Conditional forecast

Unread post by luching »

Hi Tom, I am trying to implement conditional forecasting using a VAR model ("varmodel") with exogenous regressors. I augmented "varmodel" with a separate equation for the exogenous regressor. I was able to do the unconditional or the basic forecasting using the forecast command. But I can't run the conditional forecast routines. Any hint or help will be greatly appreciated.
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Conditional forecast

Unread post by TomDoan »

There's nothing about the @condition procedure that requires that the model be a symmetrical VAR. I'm not sure how you intend to handle the "exogenous" variable. What @condition does assume is that shocks to all equations are available for making the restrictions hold, that is, a GDP constraint might best be explained with a shock to your exogenous variable. If that's what you intend, then you need to make sure you have a combined model with a combined (N+1) x (N+1) covariance matrix.
luching
Posts: 64
Joined: Mon Jun 07, 2010 4:05 pm

Re: Conditional forecast

Unread post by luching »

Right now the condition is imposed as follows:
@condition(model=varmodel+oileq,from=endate+1,steps=nstep,results=cforecasts) 1
# y(2) endate+1 .2

The exogenous regressor is oil which is specified as "oileq". Could you help me specify the variance-covariance matrix?
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Conditional forecast

Unread post by TomDoan »

I assume that you'd want to create a joint covariance matrix from the residuals from all the equations (VCV instruction).
luching
Posts: 64
Joined: Mon Jun 07, 2010 4:05 pm

Re: Conditional forecast

Unread post by luching »

Thanks Tom. This seems to work.
Post Reply