You are here

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

3 posts / 0 new
Last post
SarahWard's picture
Offline
Joined: 03/08/2010 - 21:20
error: "A cycle has been detected in model 'rGE' involving the following elements"

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
Binary Data troubled script.R8.87 KB
mspiegel's picture
Offline
Joined: 07/31/2009 - 15:24
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 - 21:20
Ahh, that makes sense.

Ahh, that makes sense. Thanks.

Log in or register to post comments