[Limdep Nlogit List] Problem with maximize
Robert Nakosteen
nakosteen at som.umass.edu
Tue Jan 8 02:05:04 EST 2008
Greetings all,
The following maximization routine was "test run" with a dummy data file.
Now, with the only changes being a real data file and new variable names,
the program does not run. Here is the program, and the error messages. Any
ideas?
maximize; fcn = bx = b0 + b1*workw3+b2*agew3+b3*agewsq+b4*Profw3+b5*Sal...
| gz = g0 + g1*agew3+g2*agewsq+g3*young+G4*house+G5*learnw3+G6*l
...
| P1a = sew/(se*se)
| P1b = P1a*(learnw3-bx)
| P1c = gz + P1b
| P2 = 1 - (sew*sew)/(se*se)
| P3 = sqr(P2)
| PhiA = Phi(P1c/P3)
| ge = (N01((learnw3 - bx)/se))/se
| L1 = log(PhiA+0.00001)
| L2 = log(1.00001-PhiA)
| L3 = log(ge+0.00001)
| divor97*(L1 + L3) + (1-divor97)*(L2 + L3);
labels = b0,b1,b2,b3,b4,b5,b6,b7,g0,g1,g2,g3,g4,g5,g6,g7,g8,se,sew;
...
start = 7.9,0.003,-0.3,0.003,1.9,1.7,0.8,0.2,.3,-.02,0.0,0.01,-0.12,
...
Error: 759: Name in expr not label,variable,scalar,matrix,list,or FNi.
Error: 588: Error translating function in optimization command.
Error: 589: Error is in LEARNW3-BX
Error: 69: WALD,NLSQ,MAXIMIZE. Cannot translate the listed string
--> Stop$
Thank you 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