Package: lcsm 0.3.3

lcsm: Univariate and Bivariate Latent Change Score Modelling

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.

Authors:Milan Wiedemann [aut, cre], Graham M Thew [ctb], Urška Košir [ctb], Anke Ehlers [ths], Mental Health Research UK [fnd]

lcsm_0.3.3.tar.gz
lcsm_0.3.3.zip(r-4.7-any)lcsm_0.3.3.zip(r-4.6-any)lcsm_0.3.3.zip(r-4.5-any)
lcsm_0.3.3.tgz(r-4.6-any)lcsm_0.3.3.tgz(r-4.5-any)
lcsm_0.3.3.tar.gz(r-4.7-any)lcsm_0.3.3.tar.gz(r-4.6-any)
lcsm_0.3.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
lcsm/json (API)

# Install 'lcsm' in R:
install.packages('lcsm', repos = c('https://milanwiedemann.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/milanwiedemann/lcsm/issues

Pkgdown/docs site:https://milanwiedemann.github.io

Datasets:
  • data_bi_lcsm - Longitudinal dataset with repeated measures of two constructs
  • data_uni_lcsm - Longitudinal dataset with repeated measures of one constructs
  • lcsm_data - Longitudinal dataset with repeated measures of two constructs

On CRAN:

Conda:

6.42 score 18 stars 49 scripts 436 downloads 14 exports 90 dependencies

Last updated from:137d3b3f41. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK171
source / vignettesOK247
linux-releaseOK128
macos-releaseOK139
macos-oldrelOK160
windows-develOK93
windows-releaseOK86
windows-oldrelOK92
wasm-releaseOK128

Exports:%>%extract_fitextract_paramfit_bi_lcsmfit_uni_lcsmplot_lcsmplot_trajectoriesrename_lcsm_varsselect_bi_casesselect_uni_casessim_bi_lcsmsim_uni_lcsmspecify_bi_lcsmspecify_uni_lcsm

Dependencies:abindbackportsbase64encbroombslibcachemcheckmatecliclustercolorspacecorpcorcpp11data.tabledigestdplyrevaluatefarverfastmapfdrtoolfontawesomeforeignFormulafsgenericsggplot2glassoglueGPArotationgridExtragtablegtoolshighrHmischtmlTablehtmltoolshtmlwidgetsigraphisobandjpegjquerylibjsonliteknitrlabelinglatticelavaanlifecyclemagrittrMASSMatrixmemoisemimemnormtnlmennetnumDerivpbapplypbivnormpillarpkgconfigplyrpngpsychpurrrqgraphquadprogR6rappdirsRColorBrewerRcppreshape2rlangrmarkdownrpartrstudioapiS7sassscalessemPlotstringistringrtibbletidyrtidyselecttinytexutf8vctrsviridisLitewithrxfunyaml

Simulate data to explore the effect of different parameters

Last update: 2023-01-30
Started: 2020-05-25

LCSM Parameters
Overview of estimated LCSM parameters | Univariate LCSM | Bivariate LCSMs

Last update: 2021-07-14
Started: 2021-07-10

Create path diagrams to visualise model specifications
Plot simplified path diagrams of LCSMs | Univariate LCSM | Bivariate LCSM

Last update: 2021-07-10
Started: 2020-05-25

Generate lavaan syntax for latent change score models
Univariate LCSM syntax | Add lavaan syntax | Bivariate LCSM syntax | True Score to Change Score | Change Score to Change Score | Add model specifications to lavaan code | TODOs

Last update: 2021-07-10
Started: 2020-05-25

Parameter estimates and fit statistics of LCSMs
Create univariate models | Extract fit statistics | Extract parameters | TODOs

Last update: 2021-07-10
Started: 2020-06-03

Visualise longitudinal data
Prepare data | Violin plots | Longitudinal plots | Overlaid individual trajectories | Separate individual trajectories | References

Last update: 2020-06-03
Started: 2020-05-25