Multilevel SEM PreviousNext
Mplus Discussion > Multilevel Data/Complex Sample >
Message/Author
 Hong Deng posted on Saturday, June 16, 2012 - 6:12 am
Dear Prof. Muthen,
I tested a 1-1-1 multilevel mediation model with the syntax below. It worked well. Then I tried to add an interaction effect between another level-1 moderator w and m on y by using the DEFINE function. mplus indicated that the interaction term i coined in DEFINE function is unknown. I also tried the ALGORITHM = INTEGRATION function, it didn't work either.
My question is what is the right way to modify the syntax below if i want to include an level moderator.
Thanks very much in advance.

TITLE: 1-1-1 mediation (MSEM)
DATA: FILE IS mydata.dat;
VARIABLE:
id x m y;
CLUSTER IS id;
ANALYSIS: TYPE IS TWOLEVEL RANDOM;
MODEL:
%WITHIN%
m ON x(aw);
y ON m(bw);
y ON x;
%BETWEEN%
x m y;
m ON x(ab);
y ON m(bb);
y ON x;
NEW(indb indw);
indw=aw*bw;
indb=ab*bb;
OUTPUT: TECH1 TECH8 CINTERVAL;
 Linda K. Muthen posted on Saturday, June 16, 2012 - 12:37 pm
If you want to use a variable created in DEFINE in the analysis, you need to put it at the end of the USEVARIABLES list after the original variables.
 Hong Deng posted on Sunday, June 17, 2012 - 2:30 am
Dear Prof. Muthen,
Thank you very much for the answer. I have a follow-up question. Do I need to model the interaction effect at BETWEEN level or I just simply put the level 2 variance of the interaction term there?
 Linda K. Muthen posted on Monday, June 18, 2012 - 4:01 pm
The interaction terms should be created in DEFINE not MODEL CONSTRAINT. The within interaction should be used on within and the between interaction should be used on between.
 Eric Deemer posted on Wednesday, October 02, 2013 - 2:16 pm
Hi,
I'd like to do a likelihood ratio test on the difference between 2 nested multilevel mediation models at 1 df difference using MLR estimation. I'd like to do this test using the log likelihoods but it seems I need the scaling correction factor to calculate this. My question is, how do I request the scaling correction factor? Is this available using "type = twolevel random"?

Eric
 Linda K. Muthen posted on Wednesday, October 02, 2013 - 6:05 pm
You will get the scaling correction factor in the output with the loglikelihood. If it is not in the output, please send the output and your license number to support@statmodel.com.
Back to top
Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: