panel threshold regression

For questions regarding programming in the EViews programming language.

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

hassanyahyavi
Posts: 2
Joined: Sun Sep 07, 2014 3:30 am

panel threshold regression

Postby hassanyahyavi » Mon Sep 08, 2014 1:44 am

hi
I ran this code in eviews but it did not work. i was wondering if someone do me a favor to find out what is wrong with my code.
I appreciate your help in advance.

smpl @all
scalar maxr2=0
for !t=-2 to 2 step 0.01
equation panel1.ls(cx=f) rl c lngdp hdi tr ren*(ren>!t) ren*(ren<=!t)
if panel1.@r2.>maxr2 then
maxr2=panel1.@r2
!threshold=!t
scalar yyyyyy=!threshold
endif
next

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: panel threshold regression

Postby EViews Gareth » Mon Sep 08, 2014 8:12 am

could you define what you mean by "didn't' work"?

hassanyahyavi
Posts: 2
Joined: Sun Sep 07, 2014 3:30 am

Re: panel threshold regression

Postby hassanyahyavi » Tue Sep 09, 2014 5:37 am

actually Eviews sent a message containing "flow of control statement executed from the command line".
thanks a lot

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: panel threshold regression

Postby startz » Tue Sep 09, 2014 6:26 am

You need to put this in a program file (File/New/Program) and run it that way, rather than from the command line.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests