Open dgnhatun opened 4 years ago
Hello, I am having this issue with semPaths. Is there a way to get plots for "mi" models?
data25 <- mice(data, m = 25, seed = 12435) mice.imp <- NULL for(i in 1:25) mice.imp[[i]] <- mice::complete(data25, action=i, inc=FALSE)
latent1 <- 'N=~ n1+ n2+ n3+ n4+ n5' out1 <- runMI(latent1, data=mice.imp, fun="cfa", meanstructure = TRUE) semPaths(out1, whatlabels = "std", layout = "tree")
Result:
semPaths(out1, whatlabels = "std", layout = "tree") # Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘semPlotModel.S4’ for signature ‘"lavaan.mi"’
Thanks,
Hello, I am having this issue with semPaths. Is there a way to get plots for "mi" models?
data25 <- mice(data, m = 25, seed = 12435) mice.imp <- NULL for(i in 1:25) mice.imp[[i]] <- mice::complete(data25, action=i, inc=FALSE)
latent1 <- 'N=~ n1+ n2+ n3+ n4+ n5'
out1 <- runMI(latent1, data=mice.imp, fun="cfa", meanstructure = TRUE) semPaths(out1, whatlabels = "std", layout = "tree")
Result:
Thanks,