Error in http://openmx.psyc.virginia.edu/docs/OpenMx/2.6.7/_static/demo/OneFactorJoint_PathRaw.R ?

Posted on
Picture of user. rabil Joined: 01/14/2010
Forums
I was looking at this example:

http://openmx.psyc.virginia.edu/docs/OpenMx/2.6.7/_static/demo/OneFactorJoint_PathRaw.R

When I ran it, there were no estimates for the factor loadings.

This code doesn't include "facLoads". Shouldn't it?

oneFactorJointModel <- mxModel("Common Factor Model Path Specification", type="RAM",
manifestVars=c("x1","x2","x3","z1","z2","z3"), latentVars="F1",
dataRaw, resVars, latVar, means, thresholds)

I think this is what is needed:

oneFactorJointModel <- mxModel("Common Factor Model Path Specification", type="RAM",
manifestVars=c("x1","x2","x3","z1","z2","z3"), latentVars="F1",
dataRaw, resVars, latVar, means, thresholds, facLoads)

Or am I missing something?

Replied on Thu, 10/20/2016 - 17:42
Picture of user. AdminHunter Joined: 03/01/2013

You're right on. I committed your fix. Thanks!

https://github.com/OpenMx/OpenMx/commit/096de3b3294136d1f0666423d79792585eb59f23