Constraining mxAlgebra across submodels

Posted on
No user picture. WuandMu Joined: 06/15/2015
Hi,

This is actually quite a quick question and the title says most of it already.
Anyway, is there anyway to constrain mxAlgebra objects across multiple submodels?

I would like to constrain estimated heritability of two separate twin models to be the same while allowing each submodel to have separate parameter estimations.

Unfortunately I was unable to find a way to do so. I have tried mxConstraint(modelA.algebra1==modelA.algebra2) but that seemed not to work.

I would be thankful for any reply!

Replied on Mon, 06/29/2015 - 10:52
Picture of user. AdminRobK Joined: 01/24/2014

It sounds like you have the right idea. Could you show the syntax you're using, and explain how it doesn't do what you want?