Page 1 of 1

Local Projections in EViews 14

Posted: Sun Jun 30, 2024 10:39 am
by v02max
Hi everyone, I'm currently demoing EViews 14 to check out the asymmetric IRFs feature in the new local projections environment.

I've been trying to run the code below, but EViews suddenly closes every time I run it. What I want to do is generate an asymmetric IRF for var1 to var5 by estimating a sequential LP from externally identified shocks shocka to shockd. The categorical variable I'm using is pos_shocka to pos_shockc which is equal to 1 if the shock variable is positive and 0 otherwise.

Code: Select all

for %y var1 var2 var3 var4 var5 for %z shocka shockb shockc smpl 2002 2023 if {%y} <> na var lp_{%y}_{%z}.ls 1 2 {%y} shock_{%z} @ c @trend freeze(gr_{%y}_{%z}) lp_{%y}_{%z}.impulse(irtype=lp, hrz=12, hac, lag=a, infosel=irhorizon, asym=pos_{%z}) {%y} @imp {%z} next next
Would appreciate any response to this thanks!

Re: Local Projections in EViews 14

Posted: Sun Jun 30, 2024 10:45 am
by EViews Mirza
Hi!

Can you provide the workfile you're using for the program? It would help in figuring out the issue.

Re: Local Projections in EViews 14

Posted: Sun Jun 30, 2024 11:13 am
by v02max
Hi Mirza, I've attached the workfile for your reference.

I think I've found the issue. If I keep the responses in default, the IRFs will be calculated:

Code: Select all

for %y var1 var2 var3 var4 var5 for %z shocka shockb shockc smpl @first @last if {%y} <> na var lp_{%y}_{%z}.ls 1 2 {%y} {%z} @ c @trend freeze(gr_{%y}_{%z}) lp_{%y}_{%z}.impulse(irtype=lp, imp=nonort, hrz=20, hac, lag=a, infosel=irhorizon, asym=pos_{%z}) @imp {%z} next next
However, if I only choose which responses I'd like to see, that's when the program crashes:

Code: Select all

for %y var1 var2 var3 var4 var5 for %z shocka shockb shockc smpl @first @last if {%y} <> na var lp_{%y}_{%z}.ls 1 2 {%y} {%z} @ c @trend freeze(gr_{%y}_{%z}) lp_{%y}_{%z}.impulse(irtype=lp, imp=nonort, hrz=20, hac, lag=a, infosel=irhorizon, asym=pos_{%z}) {%y} @imp {%z} next next

Re: Local Projections in EViews 14

Posted: Sun Jun 30, 2024 11:16 am
by EViews Mirza
This helps tremendously! We'll get a fix ready as soon as possible.

Thanks!

Re: Local Projections in EViews 14

Posted: Tue Jul 02, 2024 9:43 am
by EViews Mirza
The issue has been resolved. You can expect the fix to be available with our next EViews 14 patch.