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 <jessjoe@live.com>
To   stata list <statalist@hsphsun2.harvard.edu>
Subject   RE: st: graph interaction of continuous and categorical variables
Date   Sun, 15 Jan 2012 13:45:36 -0500

hi,
The interaction is of individual-level SES (low/med/high) and community-level GDP per capita(continuous variable)
basically, the model is like:
xtmelogit access age female i.race i.individualSES##c.ComGDP || ComID:, variance
what i want to do is to graph the interaction effect of individualSES & community GDP per capita.
  
----------------------------------------
> From: cnm100@hotmail.com
> To: statalist@hsphsun2.harvard.edu
> Subject: RE: st: graph interaction of continuous and categorical variables
> Date: Sat, 14 Jan 2012 20:01:14 -0500
>
> Well, your initial post said nothing about multiple levels. Is the interaction at level 1 only or is it cross-level?Cam
>
> ----------------------------------------
> > From: jessjoe@live.com
> > To: statalist@hsphsun2.harvard.edu
> > 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: maartenlbuis@gmail.com
> > > To: statalist@hsphsun2.harvard.edu
> > >
> > > 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/
>
> *
> * 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