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

Tech10 extraction #173

Closed cateh closed 1 year ago

cateh commented 2 years ago

Hi - I recently updated to MPLUS 8.8 and since then get an error on running mplusautomation if I request TECH10: <simpleError in bivarFitData[mPos, ] <- c(vars, values): number of items to replace is not a multiple of replacement length>

I'm wondering if the 8.8 version has some changes to the bivariate model fit output causing this error?

michaelhallquist commented 1 year ago

It's very likely that the format in 8.8 has changed slightly, which always throws a wrench in the works of parsing outputs. Could you upload a .out file that has this problem (as a .txt file for Github to see it properly)? I can give it a look -- these version-to-version changes are often quick to fix.

cateh commented 1 year ago

Thanks for replying. I compared output files from 8.8 and version 8.6 and found several additions. It seems they have added 'Number of significant standardized residuals' into the Most frequent response patterns and chi-square contributions, Univariate and Bivariate Model Fit Information sections. Also they have added Univariate and Bivariate Distributions fit for each class I attach a text file, flagging these new lines or sections with *** Technical 10 output changes.txt

sda030 commented 1 year ago

Not really the same issue, but while we are at it, the package does not really capture this tech10 message, as it only returns an empty list instead: TECH10 OUTPUT FOR THE CATEGORICAL VARIABLES IS NOT AVAILABLE BECAUSE THE FREQUENCY TABLE FOR THE LATENT CLASS INDICATOR MODEL PART IS TOO LARGE. Is this a design choice? Would it be better to be more explicit about capturing it, e.g. returning NA? An empty list makes me check the output file manually, in fear of it being missed. example.txt

rebekabalogh commented 1 year ago

Hi, just wondering if there is any update on this? I'm still having issues extracting tech10 results with the package. Thanks very much!

sam-crawley commented 1 year ago

I've created a PR to fix this.

michaelhallquist commented 1 year ago

Fixed by #182