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

By *carey*

Created *03/26/2011 - 12:01*

Sat, 03/26/2011 - 12:01 — carey [1]

(1) ran three models: the first a "general model", the second and third models constrained a (1 x 4) vector of means for one group to equal the (1 x 4) vector of means for another group. the second model did this using an MxAlgebra object while the third used an MxConstraint object.

(2) all models converged with an NPSOL inform value of 0.

(3) gradient and hessian were perfectly fine for models 1 and 2 but not for model 3. largest gradient element was -40 and the norm of the gradient was 5900. the search direction at convergence (inverse(hess) %*% gradient) gave very large elements. the calculated hessian was a (1 x 1) matrix with element NA.

(4) yet, the second and third models gave the same function value and the same parameter estimates.

(5) suspect something funky with the gradient and/or hessian returned with the third model.

belatedly, noticed that i could not attach a *.zip file. go to

http://psych.colorado.edu/~carey/OpenMxGUI/ConstraintProblem.php [2]

to download the R objects.

greg

**Links:**

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

[2] http://psych.colorado.edu/~carey/OpenMxGUI/ConstraintProblem.php

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

[4] http://openmx.psyc.virginia.edu/thread/830

[5] http://openmx.psyc.virginia.edu/forums/openmx-help/openmx-general-help