Zhang Shuang:
As usual the devil is in the detail: It will probably help if you replace:
local xb _b[n1]*`meann1' + _b[t1]*`meant1'+ ... + _b[_cons]
with:
local xb = _b[n1]*`meann1' + _b[t1]*`meant1'+ ... + _b[_cons]
The difference is the "=" sign, which means that Stata evaluates that statement and stores the
result (a number). Without the "=" sign it stores the string "_b[n1]*`meann1' + _b[t1]*`meant1'+
... + _b[_cons]" which will only be evaluated during the calculations in the -predictnl- command.
It is a very long string that is being pasted in another long string, so apperently Stata hit a
limit somewhere.
BTW, I personaly find that -nlcom- produces much nicer output than -predictnl-. You might want to
look into that command.
HTH,
Maarten
----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands
visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z214
+31 20 5986715
http://home.fsw.vu.nl/m.buis/
-----------------------------------------
___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/