# Simulate data from univariate LCSM parameters
sim_uni_lcsm(timepoints = 10,
model = list(alpha_constant = TRUE, beta = FALSE, phi = TRUE),
model_param = list(gamma_lx1 = 21,
sigma2_lx1 = 1.5,
sigma2_ux = .2,
alpha_g2 = -.93,
sigma2_g2 = .1,
sigma_g2lx1 = .2,
phi_x = .2),
return_lavaan_syntax = FALSE,
sample.nobs = 1000,
na_pct = .3)
Run the code above in your browser using DataLab