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: graph interaction of continuous and categorical variables


From   Jess Joe <[email protected]>
To   stata list <[email protected]>
Subject   RE: st: graph interaction of continuous and categorical variables
Date   Sat, 14 Jan 2012 14:17:02 -0500

Thank you very much!
i have a follow-up question: the -margins- command does not work for multilevel logistic regressions. i got the error message "default prediction is a function of possibly stochastic quantities other than e(b)". 
is there any way to graph interaction of a continuous and categorical variable in a multilevel logistic regression in STATA?  
Thanks again. 

----------------------------------------
> Date: Sat, 14 Jan 2012 17:11:22 +0100
> Subject: Re: st: graph interaction of continuous and categorical variables
> From: [email protected]
> To: [email protected]
>
> On Sat, Jan 14, 2012 at 3:31 AM, Jess Joe wrote:
> > I have a logistic regression model:
> > logit(Y) = X1 + (X1)^2 + i.X2 + i.X2*X1 + i.X2*(X1)^2
> > X1 is a continuous variable, X2 is a 4-category variable.
> > How can i graph the interaction effects in STATA? is there any specific command that could do this for me?
>
> -help marginsplot-
>
> 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/
 		 	   		  
*
*   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