Both dynamic and static forecast?

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

Both dynamic and static forecast?

Unread post by luching »

In a VAR system, is there any inbuilt command or a quick way to do a dynamic forecast for some equations and static forecast for the rest of the equations?
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Both dynamic and static forecast?

Unread post by TomDoan »

If you want to do a dynamic forecast for some variables, while using the actual values for the others, you just need to define a model which includes only the equations (from the VAR) defining the variables that you want to treat dynamically. In other words, you "exogenize" some subset of the variables.
luching
Posts: 64
Joined: Mon Jun 07, 2010 4:05 pm

Re: Both dynamic and static forecast?

Unread post by luching »

Here's what I have done:

group smodel %modeleqn(varmodel,1) %modeleqn(varmodel,2)
forecast(model=smodel)

I think the issue is that when I try to forecast the smaller model, it cannot read the 3rd variable which is the one I want to use as actuals.

It's something else. It can't even run this:

group smodel %modeleqn(varmodel,1) %modeleqn(varmodel,2) %modeleqn(varmodel,3)
forecast(model=smodel)
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Both dynamic and static forecast?

Unread post by TomDoan »

luching wrote:Here's what I have done:

group smodel %modeleqn(varmodel,1) %modeleqn(varmodel,2)
forecast(model=smodel)

I think the issue is that when I try to forecast the smaller model, it cannot read the 3rd variable which is the one I want to use as actuals.

It's something else. It can't even run this:

group smodel %modeleqn(varmodel,1) %modeleqn(varmodel,2) %modeleqn(varmodel,3)
forecast(model=smodel)
Use the following as a workaround:

Code: Select all

modify %modeleqn(varmodel,1) eqn1
modify %modeleqn(varmodel,2) eqn2
group smodel eqn1 eqn2
forecast(model=smodel)
luching
Posts: 64
Joined: Mon Jun 07, 2010 4:05 pm

Re: Both dynamic and static forecast?

Unread post by luching »

Thanks. This is a lot more elegant than the one I wrote using matrices.
Post Reply