Hi all,
I'm writing my Master thesis using SEMs and I'm having some troubles with the sem.mi()-function. I'm giving the function a list of imputed datasets as follows (some endogenous variables are categorical with two levels, therefore im using the ordered-argument)
fit = sem.mi(model, data = impList, estimator = "WLSMV", ordered = c("var1", "var2"))
summary(fit, fit.measures = T, test = "D2", pool.robust = TRUE)
When investigating the summary-output, I get huge exploding Standard Errors, though the estimates are correct.
When I investigate the Standard Errors for a single imputed data set, they all seem fine (< 1). I'm not sure why the Standard Errors are not pooled correctly in this case. This did not happen another time when I did not give a list of imputed datasets, but let the imputations be done internally by the sem.mi()-function as follows:
fit = sem.mi(model, data=data, estimator = "DWLS", miPackage = "mice", m = 25)
However, unfortunately this approach is not feasible for me in my specific task. My session informations are the following
> sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19041)
...
other attached packages:
[1] mice_3.13.0 semTools_0.5-4 lavaan_0.6-8
...
I tried different versions of semTools because I saw in another post that that might fix problems. But for example version 0.4-11 of semTools didn't even work and gave me an error when trying to run the same command as above
> sem.mi(model, data = impList, estimator = "WLSMV", ordered = c("var1", "var2"))
Fehler in lav_fit_measures(object = object, fit.measures = fit.measures, :
lavaan ERROR: please refit the model with test="standard"
I have no idea how else I could proceed. I would highly appreciate any help of yours! Thanks in advance for taking your time.
Best, Nathan