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

By *Fruhling*

Created *06/11/2010 - 09:12*

Fri, 06/11/2010 - 09:12 — Fruhling [1]

Hi,

Why is the mxConstraint command not working anymore?

How else is one to constrain the variances to unity?

Thanks.

Fruhling

# Algebra to compute total variances and standard deviations (diagonal only)

mxAlgebra( expression=A+C+E, name="V" ),

mxMatrix( type="Iden", nrow=nv, ncol=nv, name="I"),

mxAlgebra( expression=solve(sqrt(I*V)), name="sd"),

# Constraint on variance of ordinal variables

mxConstraint( alg1="V", "=", alg2="I", name="Var1"),

Error in mxConstraint(alg1 = "V", "=", alg2 = "I", name = "Var1") :

unused argument(s) (alg1 = "V", alg2 = "I")

**Links:**

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

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

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

[4] http://openmx.psyc.virginia.edu/forums/opensem-forums/categorical-outcomes