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!