Hi, I'm trying to fit a proportional odds model where 'volume' is the ordinal

response (K categories) and 'temp30' is a dicotomic factor, but I receive the

following error:

Errore in jags.model(model.file, data = data, inits = inits, n.chains =

n.chains, :

RUNTIME ERROR:

Compilation error on line 18.

Unable to resolve node eta

This may be due to an undefined ancestor node or a directed cycle in the graph

This is the code:

model{

for (i in 1:N) {

for (j in 1:K-1) {

logit(cump) <- eta-b*temp30_+delta[assessor_]

}

p <- cump

for (j in 2:K-1) {

p <- cump-cump

}

p <- 1-cump

volume_ ~ dcat(p)

}

b ~ dnorm(0,0.001)

OR <- exp(b)

tau ~ dgamma(0.001,0.001)

sigma.u <- 1/sqrt(tau)

for (aux in 1:L) {

delta ~ dnorm(0,tau)

}

eta ~ dnorm(0,1) I(,eta)

for (aux in 2:K-2) {

eta ~ dnorm(0,1) I(eta,eta)

}

eta ~ dnorm(0,1) I(eta,)

}

Any suggestioon?

Many thanks in advance and best wishes,

Alessandro Magrini___