Last 3 Days
Moderated Mediation with Categorical IV
Categorical Data Modeling
posted on Thursday, March 05, 2020 - 11:33 am
Hello! SEM newbie and could really use some help!!
I want to test a moderated mediation model with a categorical IV with 3 levels (catIV), two parallel continuous mediators (M1,M2), two continuous DVs (DV1,DV2), and one binary covariate (cov1).
I created dummy variables for catIV, making the level 3 the reference level (dummy_level1, dummy_level2). Are these needed? Also, I donít know how to set up the binary covariate?
Can someone review what I've done below and give any guidance?
MISSING ARE ALL (999);
ESTIMATOR = ML;
DV1 ON M1 M2 catIV;
DV2 ON M1 M2 catIV;
M1 WITH M2;
MODEL INDIRECT: DV1 IND catIV;
MODEL INDIRECT: DV2 IND catIV;
Bengt O. Muthen
posted on Thursday, March 05, 2020 - 1:17 pm
Q1: Yes; they replace catIV.
Q2: Nothing special.
Input looks ok but there is no reason to have DV1 WITH DV2 fixed at zero.
posted on Thursday, March 05, 2020 - 1:24 pm
Thank you and thank you! Sorry if these questions are elementary...
Would I add the binary cov1 in the model section like below, or does it go somewhere else?
DV1 ON M1 M2 catIV cov1
posted on Monday, March 09, 2020 - 8:59 pm
When I include my binary covariate in my ON statement as describe above, I get a message saying cov1 is a binary variable but is being treated like a continuous variable.
What is the right way to add this variable into the analysis?
Bengt O. Muthen
posted on Tuesday, March 10, 2020 - 10:37 am
Without seeing the full output, I would venture a yes.
Back to top
Add Your Message Here
This is a private posting area. Only registered users and moderators may post messages here.
Enable HTML code in message
Automatically activate URLs in message