Local Projections in EViews 14

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

v02max
Posts: 3
Joined: Wed Nov 22, 2023 6:52 pm

Local Projections in EViews 14

Postby v02max » Sun Jun 30, 2024 10:39 am

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!

EViews Mirza
Posts: 95
Joined: Sat Apr 22, 2017 8:23 pm

Re: Local Projections in EViews 14

Postby EViews Mirza » Sun Jun 30, 2024 10:45 am

Hi!

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

v02max
Posts: 3
Joined: Wed Nov 22, 2023 6:52 pm

Re: Local Projections in EViews 14

Postby v02max » Sun Jun 30, 2024 11:13 am

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
Attachments
irf.wf1
(29.9 KiB) Downloaded 15469 times

EViews Mirza
Posts: 95
Joined: Sat Apr 22, 2017 8:23 pm

Re: Local Projections in EViews 14

Postby EViews Mirza » Sun Jun 30, 2024 11:16 am

This helps tremendously! We'll get a fix ready as soon as possible.

Thanks!

EViews Mirza
Posts: 95
Joined: Sat Apr 22, 2017 8:23 pm

Re: Local Projections in EViews 14

Postby EViews Mirza » Tue Jul 02, 2024 9:43 am

The issue has been resolved. You can expect the fix to be available with our next EViews 14 patch.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest