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]
st: Interactions in xtmixed using lincom
From
Cody DeHaan <[email protected]>
To
[email protected]
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/