I am trying to run a model with random effects, which did run with JAGS on a different machine. But now I am getting the following
Compilation error on line 8.
BUGS I(,) notation is not allowed unless all parameters are fixed"
Line 8 is:
psiTran[transect] ~ dnorm(psiTran0,psiTran0_tau)I(-10,10)
This line is meant to set up a prior for the random effect 'transect'
Can you spot any problem here?
Short answer: use T(,) instead of I(,).
In BUGS, the I(,) construct has been used to represent both censoring and truncation, creating some confusion between the two. In JAGS, I introduced the T(,) construct for truncation, whereas censoring is represented with the dinterval distribution.
To help with portability of WinBUGS code, I allow I(,) but only when censoring and truncation are equivalent. Since you are adding a restriction to the prior, this is truncation and you need to use T.
Problem solved. Thank you very much!