panel threshold regression
Posted: 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
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