michaelhallquist / MplusAutomation

The MplusAutomation package leverages the flexibility of the R language to automate latent variable model estimation and interpretation using Mplus, a powerful latent variable modeling program developed by Muthen and Muthen (www.statmodel.com). Specifically, MplusAutomation provides routines for creating related groups of models, running batches of models, and extracting and tabulating model parameters and fit statistics.
84 stars 46 forks source link

Error using mixtureSummaryTable #197

Open sophiahn opened 8 months ago

sophiahn commented 8 months ago

First off, thank you to all the creators and contributors of the MplusAutomation package. I am its avid fan.

I am trying to create mixtureSummaryTable function after having read Mplus output files. But, I get an error message like this:

fit <- readModels(here("Mplus"), filefilter = "xxxx") mixtureSummaryTable(fit)

"Error in if (all(sapply(modelList, function(x) { : missing value where TRUE/FALSE needed"as below:

When I use the function createMixtures and then run mixtureSummaryTable, the error message does not appear; and the summary table is displayed. I am wondering if I'm the only one with this issue. If that's not the case, it would be nice to see the mixtuerSummaryTable function even without the createMixtures.

Thank you again for your work!