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

By *suzannejak*

Created *12/06/2011 - 11:07*

Tue, 12/06/2011 - 11:07 — suzannejak [1]

Dear all,

I would like to add a constraint in my EFA model to ensure that Z is diagonal. Z is a function of other matrices. I used an mxConstraint, where J is a conformable identity matrix. My question is, do you see a way of specifying this using labels instead of an mxConstraint?

algebraZ = mxAlgebra(expression = t(L)%*%G%*%solve(F), name = "Z") # should be diag

constraint1 = mxConstraint(Z == J*Z, name = "oblique")

Thanks in advance, I can give my full code if needed.

Suzanne

**Links:**

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

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

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

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