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]

st: Interactions in xtmixed using lincom


From   Cody DeHaan <codydh@me.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Interactions in xtmixed using lincom
Date   Fri, 29 Mar 2013 12:38:42 -0400

Hello!

I'm attempting to break down an interaction between two level-1 variables in a two-level model using xtmixed.

I've found examples of this using lincom, but they all seem to be using dichotomous variables instead of continuous.

I have a model:

xtmixed Regret Motivation Outcome Interaction D1 D2 || ID:, cov(un) var

where Regret, Motivation, and Outcome are all continuous, D1 and D2 are two dichotomous dummy variables, and Interaction is Motivation X Outcome.

Would it be correct to analyze the significant Interaction coefficient, looking at the effect of Outcome on Regret at Motivation values of 4, 5, and 6 using lincom commands such as:

lincom Outcome + 4*Interaction
lincom Outcome + 5*Interaction
lincom Outcome + 6*Interaction

Thanks for any help or suggestions you can provide, it's greatly appreciated!
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index