Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: inteff tobit


From   Bart Vanneste <[email protected]>
To   [email protected]
Subject   st: inteff tobit
Date   Fri, 3 Feb 2006 03:49:27 -0800 (PST)

Dear,

How can I correctly compute an interaction effect in a
Tobit model?

On 14 Jan 2005, May Boggess provided an example (see
http://www.stata.com/statalist/archive/2005-01/msg00264.html).

However, using the exact same code:

 clear
 sysuse auto 
 tobit mpg len, ll(20)
 predict xb,xb
 predict p, pr(20,.)     /*  Probability Uncensored */

 gen myp = norm(-((20-xb)/_b[_se])) 
 sum p myp

----------

I get the following error message:
.  gen myp = norm(-((20-xb)/_b[_se])) 
[_se] not found
r(111);

end of do-file
r(111);

----------

Is this error message due to different versions of
Stata? I am using Stata 9.1 for Windows.

Any suggestions or alternative approaches would be
greatly appreciated.

Many thanks,
Bart


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.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