Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: RE: predictnl for effects and se of interaction terms in probit model


From   Maarten buis <[email protected]>
To   [email protected]
Subject   RE: st: RE: predictnl for effects and se of interaction terms in probit model
Date   Sat, 3 Dec 2005 10:20:58 +0000 (GMT)

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index