| lavaan.mi | R Documentation |
This function fits a lavaan model to a list of imputed data sets.
lavaan.mi(model, data, ...)
cfa.mi(model, data, ...)
sem.mi(model, data, ...)
growth.mi(model, data, ...)
model |
The analysis model can be specified using lavaan
|
data |
A |
... |
additional arguments to pass to |
A lavaan.mi object
This functionality was originally provided via runMI() in the
semTools package, but there are differences. See the README file
on the GitHub page for this package (find link in DESCRIPTION).
Terrence D. Jorgensen (University of Amsterdam; TJorgensen314@gmail.com)
Enders, C. K. (2010). Applied missing data analysis. New York, NY: Guilford.
Rubin, D. B. (1987). Multiple imputation for nonresponse in surveys. New York, NY: Wiley. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1002/9780470316696")}
poolSat() for a more efficient method to obtain SEM results
for multiple imputations
data(HS20imps) # import a list of 20 imputed data sets
## specify CFA model from lavaan's ?cfa help page
HS.model <- '
visual =~ x1 + x2 + x3
textual =~ x4 + x5 + x6
speed =~ x7 + x8 + x9
'
## fit model to imputed data sets
fit <- cfa.mi(HS.model, data = HS20imps)
summary(fit, fit.measures = TRUE, fmi = TRUE)
summary(fit, standardized = "std.all", rsquare = TRUE)
## An example with ordered-categorical data:
data(binHS5imps) # import a list of 5 imputed data sets
## fit the model
catout <- cfa.mi(HS.model, data = binHS5imps, ordered = TRUE)
## pooled results
summary(catout)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.