Mon, 11/07/2011 - 14:06

Does anyone have or know of where I could find examples of models where some paths are functions of other parameters? For example, suppose I wanted to estimate two parameters for three paths so the third was a function of the first two: a, b, b + a/2. I've been looking at the ABO blood group example in the documentation, which does some things similar to what I want, but it is a stretch.

Thanks in advance!

You can do this using square-bracket substitution. Briefly, when you assign a label of Object[row,column], that matrix element/path is replaced by the referenced element of that object. So labeling a matrix element or path "c[1,1]" tells OpenMx to (a) find a matrix or algebra called 'c', (b) find the element in the 1st row and 1st column, and (c) put that value into this position.

Here's your path statement, with the path between w and z labeled as "the 1st row and 1st column of the matrix or algebra named 'c'"