creating a VAR model

Questions and discussions on Vector Autoregressions

creating a VAR model

Postby luching » Thu Jan 20, 2011 1:03 pm

Hi Tom,

I have a VAR model which I specify as follows:

system 1 to nvars
var 1 to nvars
lags 1 to nlags
det CONSTANT
specify(type=general,tight=.2,lag=harm,decay=1.0,noprint)
kfset kfs
end(system)

I would like to create a VAR model, let's call it VARMODEL, by using the equation numbers. I tried using the group command, but it does not seem to work. Could you please advise?

Thanks, Luching.
luching
 
Posts: 31
Joined: Mon Jun 07, 2010 4:05 pm

Re: creating a VAR model

Postby TomDoan » Thu Jan 20, 2011 5:00 pm

luching wrote:Hi Tom,

I have a VAR model which I specify as follows:

system 1 to nvars
var 1 to nvars
lags 1 to nlags
det CONSTANT
specify(type=general,tight=.2,lag=harm,decay=1.0,noprint)
kfset kfs
end(system)

I would like to create a VAR model, let's call it VARMODEL, by using the equation numbers. I tried using the group command, but it does not seem to work. Could you please advise?

Thanks, Luching.


You would have to do explicit casts to the equation type with something like the following (for 2 equations):

Code: Select all
group varmodel ([equation]1) ([equation]2)
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm


Return to VARs (Vector Autoregression Models)

Who is online

Users browsing this forum: No registered users and 1 guest