Statalist


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

st: -adjust- with interaction terms?


From   "Daniel Waxman" <[email protected]>
To   [email protected]
Subject   st: -adjust- with interaction terms?
Date   Sun, 14 Oct 2007 12:45:01 -0400

Statalist,

Is there any way to use -adjust- with interaction terms involving the
term being adjusted?

In the following example:

. xi: logistic is_dead  i.mbpos*zlog i.mbpos*zero

where mbpos is 0/1

One can adjust for mbpos=1, by:

gen pr_mb1= invlogit(_b[_Imbpos_1] + _b[zlog]*zlog + _b[_ImbpXzlog_1]*zlog /*
                       */ + _b[zero]*zero + _b[_ImbpXzero_1]*zero + _b[ _cons])


But this is quite error-prone and somewhat cumbersome.

Suggestions?


Thanks.

Daniel
*
*   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