[Limdep Nlogit List] subfunctions
Robert Nakosteen
nakosteen at som.umass.edu
Thu Nov 22 03:16:53 EST 2007
Greetings all,
The following subfunction is followed by an error message, also included:
maximize; fcn = bx = b0 + b1*hage + b2*heduc
| gz = g0 + g1*wearn + g2*child + g3*unem
| P1 = sew/(se*se)
| P1 = P1*(hearn-bx)
| P1 = gz + P1
| P2 = 1 - (sew*sew)/(se*se)
| P3 = sqr(P2)
| PhiA = Phi(P1/P3)
| ge = (N01((hearn - bx)/se))/se
| if(PhiA<0.001) PhiA=0.001
| if (PhiA>0.999) PhiA=0.999
| if(ge<0.001) ge=0.001
| L1 = log(PhiA)
| L2 = log(1-PhiA)
| L3 = log(ge)
| dummy*(L1 + L3) + (1-dummy)*(L2 + L3);
labels = b0,b1,b2,g0,g1,g2,g3,se,sew;
start = 43.6,-0.25,8.07,1.35,0.01,-0.34,0.01,20,0.10$
Error: 572: Expected subfunction name to appear in FCN=....
--> Stop$
Does anyone know the cure for this error?
Thanks in advance.
Robert A. Nakosteen
Professor
Isenberg School of Management
University of Massachusetts/Amherst
Amherst, MA 01003
Telephone: 413-545-5687
FAX: 413-545-3858
Fin-opmgtfaculty mailing list
Fin-opmgtfaculty at som.umass.edu
https://list.umass.edu/mailman/listinfo/fin-opmgtfaculty
More information about the Limdep
mailing list