Attachment | Size |
---|---|
ECOT script_new3.R | 44.54 KB |
ECOT_dis_parenting_ext_sibs.txt | 359.6 KB |
Hello,
I am currently trying to recreate ClassicMx script for an ECOT model into OpenMx and I am coming across an error that I am not sure how to solve.
When I run the model I get the following error:
Error: The following error occurred while evaluating the subexpression 'solve(ecot.matF %% solve(ecot.matI - ecot.matA) %% ecot.matM %*% ecot.matU)' during the evaluation of 'MZtoss.expMeanMZtoss' in model 'modelECOT' : 'a' (4 x 1) must be square
I have attached the ClassicMX code and OpenMx code.
There is an extraneous
solve()
operation in the MxAlgebras that define the model-expected means. I think what you probably want to do is, although I don't really understand what the 'U' matrix is supposed to do.