How to get the correlation residuals with the new version of OpenMx?
Posted on

Hi,
I recently downloaded the most recent version of OpenMx. Since then I am no longer able to get the model-implied covariance matrix, and therefore, the correlation residuals. Before, the following script would get me the correlation residuals:
residuals <- cov2cor(covmatrix) - cov2cor(modelfit$objective@expCov)
round(residuals, digits=4)
My data are in "covmatrix", a symmetric covariance matrix. The result of the mxRun is stored in "modelfit")
This script doesn't work anymore because modelfit$objective@expCov no longer gives me the model implied covariance matrix. What do I have to type instead?
Never mind
residuals <- cov2cor(covmatrix) - cov2cor(modelfit$objective@info$expCov)
round(residuals, digits=4)
Sorry!
Log in or register to post comments