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.
81 stars 46 forks source link

Reading model output from auxiliary variables #204

Closed cooperr11 closed 1 month ago

cooperr11 commented 2 months ago

Hi there, I'm hoping to extract the model output from a model including auxiliary variables (using R3STEP within Mplus). I can extract the main parameters (means, intercepts etc) using the readModels(what='parameters') command, but I receive the following error for the auxiliary variables section:

In rbind(c("SDS", "0.513", "0.534", "0.545", "0.606", "0.673", "0.687",  :
  number of columns of result is not a multiple of vector length

(where SDS is my auxiliary variable). Are you able to help me with this? Thanks!

michaelhallquist commented 2 months ago

Could you upload the .out file here for us to review? This is crucial to debug the issue. Please change the suffix to .txt so that Github will accept it as an attachment.

Thanks, Michael

cooperr11 commented 2 months ago

01_quadratic_5class_sds.txt

michaelhallquist commented 1 month ago

Thanks for posting this file. I have now updated the codebase to handle R3STEP outputs and readModels now includes an $r3step element by default (commit 47b4d6c).