|
Longitudinal
Structural Equation Modeling: A Comprehensive Introduction, Second Edition Jason T.
Newsom Portland
State University |
Corrections and clarifications
(2nd ed)
Syntax
and data sets In Mplus, locate data in the same folder as
the input file. For the R package lavaan, locate data in the same folder as
the script file and use rstudioapi package code included to set default
working directory location for the data to be the same location as that of
the script file, or omit the rstudioapi code and use the file location path
to read the data files from the online location or your local drive location. |
Chapter |
Data Sets |
Mplus |
lavaan |
All chapters |
lsemr.zip |
||
1 Review of some key latent variable
principles |
|
||
2 Longitudinal measurement invariance Excel sheet for
computing DNCI and Cohen’s w: |
|
||
3 Structural models for comparing dependent
means and proportions |
|
||
4 Fundamental concepts of stability and
change |
|||
5 Cross-lagged panel models |
|||
6 Latent state-trait models |
Coming soon please see first
edition examples for now |
||
7 Linear latent growth curve models |
|
||
8 Nonlinear latent growth curve models |
|
||
9 Latent difference score models |
|
||
10 Latent transition and growth mixture
models |
|
||
11 Growth mixture models |
|
||
12 Time series models |
|
||
13 Survival analysis models |
|
||
14 Missing data and attrition |
|
Data files contain the same data sets used in the
text (many of the data sets are used in more than one chapter). Data were
simulated to closely correspond with the mean, variances, and covariances of
several real data sets. See Example Data Sets at the front of the book for
additional information. Syntax files were developed using Mplus versions 8.9
and the lavaan R package versions 0.6-16.
All examples in the text are represented here. When variations on a
particular model involve imposing constraints, only one example is given and
notes on how to test the model variation are made in comments in the
syntax. Examples in lavaan code are
provided where current features allow. Binary ML and latent class analysis
examples are only available in Mplus, for example. Thanks to Amanuel Melekin (Zimam) for help
translating Mplus code to lavaan for the first edition.
|
Longitudinal
Structural Equation Modeling : A Comprehensive
Introduction Jason T.
Newsom Portland State
University |
Corrections and
clarifications
Syntax
and data sets
In Mplus, locate data in the same folder as the
syntax/input file. In lavaan, replace <your director path> with the
location of your data file in the working directory command. For example,
setwd("c:/analyses/lsem"). Before using lavaan for the first time on
any computer, you will need to run the following line: install.packages("lavaan",
dependencies=TRUE)
Chapter |
Data Sets |
Mplus |
lavaan |
All chapters |
|||
1 Review of some key latent variable
principles |
|
||
2 Longitudinal measurement invariance |
|
||
3 Structural models for comparing dependent
means and proportions |
|
||
4 Fundamental concepts of stability and
change |
|||
5 Cross-lagged panel models |
|
||
6 Latent state-trait models |
|
||
7 Linear latent growth curve models |
|
||
8 Nonlinear latent growth curve models |
|
||
9 Latent difference score models |
|
||
10 Latent transition and growth mixture
models |
|
||
11 Time series models |
|
||
12 Survival analysis models |
|
||
13 Missing data and attrition |
|
Data files contain the same data sets used in
the text (many of the data sets are used in more than one chapter). Data were
simulated to closely correspond with the mean, variances, and covariances of
several real data sets. See Example Data Sets at the front of the book for
additional information. Syntax files were developed using Mplus versions 7.1 -
7.3 and the lavaan R package versions 0.5-16 and 0.5-18. All examples in the text are represented
here. When variations on a particular model involve imposing constraints, only
one example is given and notes on how to test the model variation are made in
comments in the syntax. Examples in
lavaan code are provided where current features allow. Binary ML and latent
class analysis examples are only available in Mplus, for example. Thanks to Amanuel Zimam for help translating
Mplus code to lavaan.