You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Latent Curve Model with Structured Residuals (LCM-SR) {#sec-msem-lcm-sr}
830
+
831
+
A latent curve model with structured residuals (LCM-SR) estimated with long-form data in multilevel SEM allows estimating a cross-lagged model to (a) determine the direction of effect between two constructs, (b) account for individual differences in level and change of each construct, (c) account for unbalanced time, and (d) disaggregate within-person from between-person effects.
832
+
833
+
This example is adapted from Hoffman's [Example 5A](https://www.lesahoffman.com/PSQF7375_AdvLong/index.html):
834
+
835
+
```
836
+
TITLE: Latent Curve Model with Structured Residuals with Long-Form
837
+
Data in Multilevel SEM
838
+
839
+
DATA:
840
+
FILE = "C:/[insert_filepath]/filename.dat";
841
+
842
+
VARIABLE: ! List of variables in data file
843
+
NAMES = PersonID sex A B time timesq;
844
+
! Variables to be analyzed in this model
845
+
USEVARIABLE = time timesq sex A B;
846
+
MISSING ARE ALL (-999); ! Missing data identifier
847
+
! MLM options
848
+
CLUSTER = PersonID; ! Level-2 ID
849
+
BETWEEN = sex; ! Observed ONLY level-2 predictors
850
+
WITHIN = time timesq; ! Observed ONLY level-1 predictors
0 commit comments