You are here

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

2 posts / 0 new
Last post
rabil's picture
Offline
Joined: 01/14/2010 - 16:47
Error in http://openmx.psyc.virginia.edu/docs/OpenMx/2.6.7/_static/demo/OneFactorJoint_PathRaw.R ?

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?

AdminHunter's picture
Offline
Joined: 03/01/2013 - 11:03
Oops

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

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

Log in or register to post comments