Hi everyone,

I'm trying to truncate deterministic node theta.t to ensure its values lie between 0 and 1.

I've tried to solve the issue by employing T(0,1) function at the end of line 6, which doesn't work, and I'm not sure how to use ~dinterval() to address this particular problem.

Here the code:

model{ # PRIORS alpha~dunif(0,1) beta~dunif(0,1) # Deterministic Node for(j in 1:n.intervals){ theta.t[j]<-exp(-alpha*retention.intervals[j])+beta } # DATA for(i in 1:n.participants){ for(j in 1:n.intervals){ k[i,j]~dbin(theta.t[j],18) } } }

Thanks in advance!