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

Posted on
No user picture. brauer Joined: 01/28/2012
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?

Replied on Wed, 05/02/2012 - 10:15
No user picture. brauer Joined: 01/28/2012

Oops I just figured it out. All I had to do was add "info$". The following script works:

residuals <- cov2cor(covmatrix) - cov2cor(modelfit$objective@info$expCov)
round(residuals, digits=4)

Sorry!