Residual output incomplete

17 views
Skip to first unread message

Tomás Arriaza

unread,
Jul 31, 2026, 5:58:06 PM (3 days ago) Jul 31
to MplusAutomation
Hi Dr. Hallquist,

I hope this message finds you well. I just wanted to let you know that the version 1.3 is not extracting all the residuals output. I am extracting data from Mplus v.9 outputs.

From the following subsections:

- Model Estimated Means/Intercepts/Thresholds
- Residuals for Means/Intercepts/Thresholds
- Model Estimated Covariances/Correlations/Residual Correlations
- Residuals for Covariances/Correlations/Residual Correlations

- Model Estimated Correlations/Residual Correlations
- Model Estimated Partial Correlations
- Residuals for Correlations/Residual Correlations
- Residuals for Partial Correlations

readModels is only extracting information from those in bold.

I could fix this problem by overriding the extractResiduals_1section_mod function. I included ".*" as follows:

targetList[["correlationEst"]] <- matrixExtract(residSubsections[[g]],  "Model Estimated Correlations.*", filename)
targetList[["correlationResid"]] <- matrixExtract(residSubsections[[g]], "Residuals for Correlations.*", filename)

I also adapted that code for partial correlation outcome.

targetList[["partcorrelationEst"]] <- matrixExtract(residSubsections[[g]],  "Model Estimated Partial Correlations.*", filename)
targetList[["partcorrelationResid"]] <- matrixExtract(residSubsections[[g]], "Residuals for Partial Correlations.*", filename)

Not sure if this affect another part of the output, but it seems it is not so far.

Have a great weekend!

michael.hallquist

unread,
Aug 1, 2026, 12:23:50 PM (2 days ago) Aug 1
to MplusAutomation
Thanks for letting me know about this, Tom. Those new sections weren't previously parsed, but I just added a commit to the development version of MplusAutomation that now grabs them. devtools::install_github("michaelhallquist/MplusAutomation").

Best,
Michael

Reply all
Reply to author
Forward
0 new messages