Converting ClassicMx script to OpenMx
Posted on
amr438
Joined: 03/09/2016
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.
extraneous solve()
solve()
operation in the MxAlgebras that define the model-expected means. I think what you probably want to do ist(ecot.matF%*%solve(ecot.matI-ecot.matA)%*%ecot.matM%*%ecot.matU)
, although I don't really understand what the 'U' matrix is supposed to do.
Log in or register to post comments