model{ for(i in 1:N){ k[i]~dbin(theta[i],n) } # Prior for(i in 1:N){ theta[i]~dbeta(1,1) } }