Page 1 of 1

SVAR long run restrictions code error

Posted: Wed Dec 06, 2017 5:46 am
by Upile
Hello,

I've been trying to impose long run restrictions on a VAR. I want to impose a diagonal F matrix by running the following codes

var varname.ls 1 12 lgdp inflation int_rate
varname.append(svar) @diag(f)
varname.svar

or
var varname.ls 1 12 lgdp inflation int_rate
varname.append(svar) @f=matrixf ' (having already created matrixf with NAs in the main diagonal)
varname.svar

I get the following error "Illegal specification . Restriction type for SVAR not specified in "DO_ VARNAME.SVAR".


using the code
var varname.ls 1 12 lgdp inflation int_rate
varname.svar(f=matrixf)

I get the message "Illegal specification . Restriction type for SVAR not specified in "DO_ VARNAME.SVAR(F=MATRIXF)".


Where am I going wrong?
Thanks in advance

Re: SVAR long run restrictions code error

Posted: Wed Dec 06, 2017 5:59 am
by EViews Gareth
Which version of EViews?

Re: SVAR long run restrictions code error

Posted: Wed Dec 06, 2017 10:04 am
by EViews Matt
That error arises when you try to use the new EViews 10 SVAR syntax with an earlier version of EViews. You'll have to use the "old" syntax matching your version. You can learn the old syntax from the local EViews help system, e.g., in the object reference for VARs, rather than the online help (which is for the latest version of EViews).

Re: SVAR long run restrictions code error

Posted: Wed Dec 06, 2017 3:00 pm
by Upile
I’m using eviews 9.

Re: SVAR long run restrictions code error

Posted: Wed Dec 06, 2017 3:17 pm
by EViews Matt
In which case you'll need to use something like:

Code: Select all

varname.svar(rtype=patlr,namelr=matrixf)

Re: SVAR long run restrictions code error

Posted: Wed Dec 06, 2017 6:15 pm
by Upile
It worked. Thanks guys. I appreciate it