Generate lavaan syntax for different model specifications

specify_uni_lcsm()

Specify lavaan model for univariate latent change score models

specify_bi_lcsm()

Specify lavaan model for bivariate latent change score models

Fit models using lavaan

fit_uni_lcsm()

Fit univariate latent change score models

fit_bi_lcsm()

Fit bivariate latent change score models

Extract results from models using broom

extract_fit()

Extract fit statistics of lavaan objects

extract_param()

Extract labelled parameters of lavaan objects

Simulate data using lavaan

sim_uni_lcsm()

Simulate data from univariate latent change score model parameter estimates

sim_bi_lcsm()

Simulate data from bivariate latent change score model parameter estimates

Visualise data and simplified path models

plot_lcsm()

Plot simplified path diagram of univariate and bivariate latent change score models

plot_trajectories()

Plot individual trajectories

Helper functions

select_uni_cases()

Select cases based on minimum number of available session scores on one longitudinal measure

select_bi_cases()

Select cases based on minimum number of available session scores on two longitudinal measures

rename_lcsm_vars()

Rename variables for univariate and bivariate latent change score models

Datasets

data_uni_lcsm

Longitudinal dataset with repeated measures of one constructs

data_bi_lcsm

Longitudinal dataset with repeated measures of two constructs