#2 directed cycle error message

v1.0_(example)
closed
nobody
None
1
2013-10-18
2013-10-14
Anonymous
No

I am trying to run a model in JAGS via the R2jags package in R. The model code is attached.

When I attempt to run this model, I get the following error message:

Error in jags.model(model.file, data = data, inits = init.values, n.chains = n.chains, :
RUNTIME ERROR:
Compilation error on line 35.
Unable to resolve node q[1,1:8]
This may be due to an undefined ancestor node or a directed cycle in the graph

The model works fine in WinBUGS, so I know all nodes are defined. I don't know what a "directed cycle" is and am not finding much online or in the JAGS user manual that is particularly illuminating. I am therefore having difficulty figuring out what the problem is.

1 Attachments

Discussion

  • Martyn Plummer

    Martyn Plummer - 2013-10-18

    See my reply in the forum.

     
  • Martyn Plummer

    Martyn Plummer - 2013-10-18
    • status: open --> closed
     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks