This function takes data with missing observations, multiple imputes the data, runs a SEM using lavaan and combines the results using Rubin's rules. Note that parameter estimates and standard errors are pooled by the Rubin's (1987) rule. The chi-square statistics and the related fit indices are pooled by the method described in "chi" argument. SRMR is calculated based on the average model-implied means and covariance matrices across imputations.
Data frame with missing observations or a list of data frames where each data frame is one imputed data set (for imputed data generated outside of the function). If a list of data frames is supplied, then other options can be left at the default.
m
Number of imputations wanted.
miArgs
Addition arguments for the multiple-imputation function. The arguments should be put in a list (see example below).
miPackage
Package to be used for imputation. Currently these functions only support "Amelia" or "mice" for imputation.
chi
The method to combine the chi-square. Can be one of the following: "mr" for the method proposed for Meng & Rubin (1992), "mplus" for the method used in Mplus (Asparouhov & Muthen, 2010), "lmrr" for the method proposed by Li, Meng, Raghunathan, & Rubin (1991), "all" to show the three methods in the output, and "none" to not pool any chi-square values. The default is "all".
seed
Random number seed to be used in imputations.
nullModel
lavaan syntax for the null model. If not specified, the default null model from lavaan is used.
includeImproper
If TRUE, the function will combine the results with improper solutions to get the combined solution.
fun
The character of the function name used in running lavaan model ("cfa", "sem", "growth", "lavaan").
...
Other arguments to be passed to the specified lavaan function ("cfa", "sem", "growth", "lavaan").
Value
The lavaanStar object which contains the original lavaan object (where the appropriate parameter estimates, appropriate standard errors, and chi-squares are filled), the additional fit-index values of the null model, which need to be adjusted to multiple datasets, and the information from pooling multiple results.
Author(s)
Alexander M. Schoemann (East Carolina University; schoemanna@ecu.edu)
Patrick Miller (University of Notre Dame; pmille13@nd.edu)
Sunthud Pornprasertmanit (psunthud@gmail.com)
Mijke Rhemtulla (University of Amsterdam; M.T.Rhemtulla@uva.nl)
Alexander Robitzsch (Federal Institute for Education Research, Innovation, and Development of the Austrian School System, Salzburg, Austria; a.robitzsch@bifie.at)
Craig Enders (Arizona State University; Craig.Enders@asu.edu)
Mauricio Garnier Villarreal (University of Kansas; mgv@ku.edu)
Yves Rosseel (Ghent University; Yves.Rosseel@UGent.be)
References
Asparouhov T. & Muthen B. (2010).Chi-Square Statistics with Multiple Imputation. Technical Report. www.statmodel.com.
Li, K.H., Meng, X.-L., Raghunathan, T.E. and Rubin, D.B. (1991). Significance Levels From Repeated p-values with Multiply-Imputed Data. Statistica Sinica, 1, 65-92.
Meng, X.L. & Rubin, D.B. (1992). Performing likelihood ratio tests with multiply-imputed data sets. Biometrika, 79, 103 - 111.
Rubin, D.B. (1987) Multiple Imputation for Nonresponse in Surveys. J. Wiley & Sons, New York.