Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: interaction terms between binary and continuous variables in logistic regression


From   Maarten Buis <[email protected]>
To   [email protected]
Subject   Re: st: interaction terms between binary and continuous variables in logistic regression
Date   Thu, 26 May 2011 16:29:57 +0200

On Thu, May 26, 2011 at 4:10 PM, Philippe Girault <[email protected]> wrote:
> I would need help with interaction terms and lincom command with STATA 11. Let’s say that the model (random effects logistic regression) includes a binary covariate labelled “drug” (0/1),  a continuous variable “visit” from 0 (baseline visit) to 24, and one interaction between these 2 covariates (p<0.05).
>
> For the slope, i used the following lincom syntax:  lincom visit + c.visit#1.drug, or
>
> Now, I would like to know the OR of drug use at visit 12. What would be the syntax for the lincom?

lincom 1.drug + 12*c.visit#1.drug, or

Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany


http://www.maartenbuis.nl
--------------------------

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index