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

fatal error when reading model parameters #181

Closed lilchow closed 1 year ago

lilchow commented 1 year ago

Dear Developers,

I was trying to extract parameters from the two attached mplus output files and I kept getting the same error message reproduced verbatim below:

simpleError in names(parsedParams) <- columnNames: 'names' attribute [34] must be the same length as the vector [7]

Could you have a look at the problem when you have a moment? Thank you very much!

best, Haotian sem_regp.txt sem_full.txt

michaelhallquist commented 1 year ago

Hi Haotian,

I believe this was caused a new section header in the Mplus output. However, we have since updated the parser for section headers and I have confirmed that both the files you shared are now read into R as expected. Please feel free to reopen the issue if you continue to have problems, and if so, please let us know the version of the package you're using.

Best, Michael