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
panel threshold regression
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: panel threshold regression
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
actually Eviews sent a message containing "flow of control statement executed from the command line".
thanks a lot
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
You need to put this in a program file (File/New/Program) and run it that way, rather than from the command line.
Who is online
Users browsing this forum: No registered users and 2 guests
