Page 1 of 1

panel threshold regression

Posted: Mon Sep 08, 2014 1:44 am
by hassanyahyavi
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

Re: panel threshold regression

Posted: Mon Sep 08, 2014 8:12 am
by EViews Gareth
could you define what you mean by "didn't' work"?

Re: panel threshold regression

Posted: Tue Sep 09, 2014 5:37 am
by hassanyahyavi
actually Eviews sent a message containing "flow of control statement executed from the command line".
thanks a lot

Re: panel threshold regression

Posted: Tue Sep 09, 2014 6:26 am
by startz
You need to put this in a program file (File/New/Program) and run it that way, rather than from the command line.