Sem with within-subject variable PreviousNext
Mplus Discussion > Structural Equation Modeling >
Message/Author
 Karen Chan posted on Sunday, September 26, 2010 - 8:17 pm
hi all,

i'm wondering if i could study the relationship between some variables with sem. Here are the variables:

Independent variable - X1 (categorical, 2 levels, experimentally manipulated, within-subject), X2 (categorical, between-subject, moderator variable), X3/Y1 (continuous, within-subject, also a dependent variable)

Dependent variable - Y1/X3 (continuous, within-subject, also an independent variable), Y2 (continuous, within-subject)

The paths that i want to include are the following:

X1->Y1
X3->Y2
X2 has a moderating effect on X1->Y1

How can I do that using Mplus and how might the input file look like? I'm using the .dat file.
 Linda K. Muthen posted on Monday, September 27, 2010 - 10:22 am
WITHIN = x1 x3 y1 y3;
BETWEEN = x2;

MODEL:
%WITHIN%
s | y1 ON x1;
y2 ON x3;
%BETWEEN%
s ON x2;
 Amy Walzer posted on Saturday, February 22, 2014 - 8:42 pm
Hello all,

I am having some difficulty determining the syntax for the model I need to test. I believe it is a moderated mediation. Here are my variables:

- Gender - IV, Experimentally manipulated, categorical (2-levels), between subjects
- Comp - Mediator between Gender and Comp, continuous
- Goal Diff - DV, continuous
- Sexism - Moderator of Comp on Gender, continuous, between subjects
- Goal Type - Moderator of Goal Diff on Comp, experimentally manipulated, categorical (2 levels; learning goal vs. performance goal), within subjects

I want to know:

- Does Comp mediate the relationship between Gender and Goal Diff?
- Does Sexism moderate the relationship between Gender and Comp?
- Does Goal Type (within-subjects) moderate the relationship between Comp and Goal Diff?

What would the input look like for this model?

Given that Goal Type is a within-subjects variable, do I need to have two lines of data per participant, one for each Goal Type (learning goal and performance goal)? What analysis type would this be?

I know this is a lot to ask so any help people could provide would be greatly appreciated!

Warm regards,

Amy
 Linda K. Muthen posted on Sunday, February 23, 2014 - 12:19 pm
Example 3.18 is moderated mediation. See if that helps you.
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: