2 level LGM PreviousNext
Mplus Discussion > Multilevel Data/Complex Sample >
 Wen-Hsu Lin posted on Monday, February 10, 2014 - 7:43 pm
Greeting, I want to see how class atmosphere change overtime influences students' depression overtime. I then have the following variables and syntax:
(1)class atmosphere: c1 c2 c3
(2)students' depression: d1 d2 d3

variable: names are number
c1 c2 c3 d1 d2 d3;

within=d1 d2 d3;
between=c1 c2 c3;
missing is blank;

analysis: type= twolevel random;
di ds|d1@0 d2@1 d3@2;
ci cs|c1@0 c2@1 c3@2;
di ds on ci cs;

is this correct?
 Linda K. Muthen posted on Tuesday, February 11, 2014 - 10:28 am
You cannot use growth factors specified on within in the between part of the model. You would need to specify the model as follows removing the WITHIN option:

diw dsw|d1@0 d2@1 d3@2;
dib dsb|d1@0 d2@1 d3@2;
ci cs|c1@0 c2@1 c3@2;
dib dsb on ci cs;
 Wen-Hsu Lin posted on Tuesday, February 11, 2014 - 5:51 pm
got it, thanks a lot
Back to top
Add Your Message Here
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Options: Enable HTML code in message
Automatically activate URLs in message