| fit_uni_lcsm | R Documentation | 
Fit univariate latent change score models.
fit_uni_lcsm( data, var, model, add = NULL, mimic = "Mplus", estimator = "MLR", missing = "FIML", return_lavaan_syntax = FALSE, ... )
| data | A data frame in "wide" format, i.e. one column for each measurement point and one row for each observation. | 
| var | Vector, specifying the variable names of each measurement point sequentially. | 
| model | List of model specifications (logical) for variables specified in  
 | 
| add | String, lavaan syntax to be added to the model | 
| mimic | See  | 
| estimator | See  | 
| missing | See  | 
| return_lavaan_syntax | Logical, if TRUE return the lavaan syntax used for simulating data. To make it look beautiful use the function cat. | 
| ... | Additional arguments to be passed to lavOptions. | 
This function returns a lavaan class object.
Ghisletta, P., & McArdle, J. J. (2012). Latent Curve Models and Latent Change Score Models Estimated in R. Structural Equation Modeling: A Multidisciplinary Journal, 19(4), 651–682. doi: 10.1080/10705511.2012.713275.
Grimm, K. J., Ram, N., & Estabrook, R. (2017). Growth Modeling—Structural Equation and Multilevel Modeling Approaches. New York: The Guilford Press.
McArdle, J. J. (2009). Latent variable modeling of differences and changes with longitudinal data. Annual Review of Psychology, 60(1), 577–605. doi: 10.1146/annurev.psych.60.110707.163612.
Yves Rosseel (2012). lavaan: An R Package for Structural Equation Modeling. Journal of Statistical Software, 48(2), 1-36. doi: 10.18637/jss.v048.i02.
# Fit univariate latent change score model
fit_uni_lcsm(data = data_uni_lcsm, 
             var = names(data_uni_lcsm)[2:4],
             model = list(alpha_constant = TRUE, 
                          beta = FALSE, 
                          phi = FALSE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.