Skip to main content
. 2022 May 11;7:149. [Version 1] doi: 10.12688/wellcomeopenres.17536.1

Table 1. Main functions of the lcsm R package and their dependencies.

Function Description Main dependency
Specify lavaan syntax
    specify_uni_lcsm() Specify lavaan syntax for univariate LCSM base
    specify_bi_lcsm() Specify lavaan syntax for bivariate LCSM base
Fit models  
    fit_uni_lcsm() Fit univariate LCSM lavaan
    fit_bi_lcsm() Fit bivariate LCSM lavaan
Extract results  
    extract_fit() Extract fit statistics from lavaan objects broom
    extract_param() Extract parameter estimates from lavaan objects broom
Simulate data  
    sim_uni_lcsm() Simulate data from univariate LCSM parameters lavaan
    sim_bi_lcsm() Simulate data from bivariate LCSM parameters lavaan
Visualisation functions  
    plot_trajectories() Plot individual trajectories of cases ggplot2
    plot_lcsm() Plot simplified LCSM path diagram semPlot

Note. More details about each function can be found in the package documentation or using the help() function in R. This column lists additional R packages that are required by the functions of the lcsm package.