Attachment | Size |
---|---|
troubled script.R | 8.87 KB |
Hi there, I was trying to modify a script I found online, from http://www.vipbg.vcu.edu/~vipbg/OpenMx/, called "InteractionGxE_rGE-hm2.R:. I keep getting the message "Error: A cycle has been detected in model 'rGE' involving the following elements: 'DZ.min2sumll' and 'DZ.objective'". I haven't seen that error before, I'm having trouble finding my error in the syntax. Any pointers for fixing this?
There is a right parenthesis missing before the definitions of min2sumll and the mxAlgebraObjective. I know the right parenthesis is missing because the cycle contains 'DZ.min2sumll' and 'DZ.objective', but you intended to put these declarations in the model "rGE" instead of the model "DZ". The script defines two objective functions for the model DZ, a FIML objective and an algebra objective, and so only the last definition is used.
Ahh, that makes sense. Thanks.