Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[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 <maartenlbuis@gmail.com>
To   statalist@hsphsun2.harvard.edu
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 <philgirault@gmail.com> 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index