error: "A cycle has been detected in model 'rGE' involving the following elements"

2 replies [Last post]
SarahWard's picture
Offline
Joined: 03/08/2010

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?

AttachmentSize
troubled script.R8.87 KB
mspiegel's picture
Offline
Joined: 07/31/2009
There is a right parenthesis

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.

SarahWard's picture
Offline
Joined: 03/08/2010
Ahh, that makes sense.

Ahh, that makes sense. Thanks.