Published on *OpenMx* (http://openmx.psyc.virginia.edu)

By *brauer*

Created *05/02/2012 - 10:06*

Wed, 05/02/2012 - 10:06 — brauer [1]

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?

**Links:**

[1] http://openmx.psyc.virginia.edu/users/brauer

[2] http://openmx.psyc.virginia.edu/thread/1382

[3] http://openmx.psyc.virginia.edu/thread/1367

[4] http://openmx.psyc.virginia.edu/forums/openmx-help/openmx-structural-equation-modeling