Categorical Level2-Control Variable i... PreviousNext
Mplus Discussion > Dynamic Structural Equation Modeling >
 Felicitas Grande posted on Tuesday, July 21, 2020 - 4:30 am
1) (How) can I control categorical, between-person variables in RDSEM?

2) Suppose I want to control for gender, would it work the way suggested below or how do I have to deal with categorical moderators?

%WITHIN% !Specify the random lagged relationships

alpha | a^ ON a^1;
beta | a^ ON a^1;
a ON day;

gamma | b^ ON b^1;
delta | b^ ON b^1;
b ON day;

a WITH b;

%BETWEEN% !allow all random effects to covary

alpha WITH beta-delta a b;
beta WITH gamma delta a b;
gamma WITH delta a b;
delta WITH a b;
a WITH b;

!control for gender

alpha beta gamma delta ON gender;
 Bengt O. Muthen posted on Wednesday, July 22, 2020 - 5:36 pm
You are handling gender correctly. But these statements don't make sense:

alpha | a^ ON a^1;
beta | a^ ON a^1;

I don't see why you are repeating what you have on the RHS of |
  Felicitas Grande posted on Thursday, July 23, 2020 - 12:58 am
Thank you for confirming my suggestion.

And of course, you are right. My mistake. it was supposed to be this:

alpha | a^ ON a^1
beta | b^ ON a^1

gamma | b ON b^1
delta | a^ ON b^1
Back to top
Add Your Message Here
Username: Posting Information:
This is a public posting area. Enter your username and password if you have an account. Otherwise, enter your full name as your username and leave the password blank. Your e-mail address is optional.
Options: Enable HTML code in message
Automatically activate URLs in message