Helper functions to implement univariate and bivariate latent change score models in R using the 'lavaan' package. For details about Latent Change Score Modeling (LCSM) see McArdle (2009) <doi:10.1146/annurev.psych.60.110707.163612> and Grimm, An, McArdle, Zonderman and Resnick (2012) <doi:10.1080/10705511.2012.659627>. The package automatically generates 'lavaan' syntax for different model specifications and varying timepoints. The 'lavaan' syntax generated by this package can be returned and further specifications can be added manually. Longitudinal plots as well as simplified path diagrams can be created to visualise data and model specifications. Estimated model parameters and fit statistics can be extracted as data frames. Data for different univariate and bivariate LCSM can be simulated by specifying estimates for model parameters to explore their effects. This package combines the strengths of other R packages like 'lavaan', 'broom', and 'semPlot' by generating 'lavaan' syntax that helps these packages work together.
Version: | 0.1.2 |
Depends: | R (≥ 3.5.0) |
Imports: | lavaan (≥ 0.6.2), dplyr (≥ 0.7.4), tibble (≥ 1.4.2), magrittr (≥ 1.5), rlang (≥ 0.1.6), tidyr (≥ 0.8.0), ggplot2 (≥ 2.2.1), broom (≥ 0.5.1), semPlot (≥ 1.1), stats (≥ 3.5.2), stringr (≥ 1.4.0), purrr (≥ 0.3.4), data.table, utf8 |
Suggests: | testthat (≥ 2.1.0), knitr (≥ 1.22), rmarkdown (≥ 1.12), shiny (≥ 1.4.0) |
Published: | 2020-07-24 |
Author: | Milan Wiedemann [aut, cre], Anke Ehlers [ths], Mental Health Research UK [fnd] |
Maintainer: | Milan Wiedemann <milan.wiedemann at gmail.com> |
BugReports: | https://github.com/milanwiedemann/lcsm/issues |
License: | GPL-3 |
URL: | https://milanwiedemann.github.io/lcsm/ |
NeedsCompilation: | no |
Citation: | lcsm citation info |
Materials: | README NEWS |
CRAN checks: | lcsm results |
Reference manual: | lcsm.pdf |
Vignettes: |
Visualise longitudinal data Generate lavaan syntax for latent change score models Create path diagrams to visualise model specifications Parameter estimates and fit statistics of latent change score models Simulate data to explore the effect of different parameters |
Package source: | lcsm_0.1.2.tar.gz |
Windows binaries: | r-devel: lcsm_0.1.2.zip, r-release: lcsm_0.1.2.zip, r-oldrel: lcsm_0.1.2.zip |
macOS binaries: | r-release: lcsm_0.1.2.tgz, r-oldrel: lcsm_0.1.2.tgz |
Old sources: | lcsm archive |
Please use the canonical form https://CRAN.R-project.org/package=lcsm to link to this page.