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
SVAR long run restrictions code error
Moderators: EViews Gareth, EViews Moderator
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13319
- Joined: Tue Sep 16, 2008 5:38 pm
-
- EViews Developer
- Posts: 563
- Joined: Thu Apr 25, 2013 7:48 pm
Re: SVAR long run restrictions code error
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
I’m using eviews 9.
-
- EViews Developer
- Posts: 563
- Joined: Thu Apr 25, 2013 7:48 pm
Re: SVAR long run restrictions code error
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
It worked. Thanks guys. I appreciate it
Who is online
Users browsing this forum: No registered users and 38 guests