Is it possible to use a continuous predictor in Bugs? The simplest way of doing this would be turning the size variable in alligators example from discrete to continuous.

Both Winbugs and JAGS examples use combination of values of covariates as indices as in

X[i,j,] ~ dmulti( p[i,j,] , n[i,j]  );

where i is the lake index (4 possible values), and j is the size index (2 possible values). With this approach, a continuous size variable would mean an infinite amount of indices. There must be something I'm missing here.


1 Answer 1


I was taught to model p in this case:

X[i] ~ dbin(p[i], n[i])
logit(p[i]) <- alpha + beta * X1[i]

(X1 being a covariate.) This is classic logisitic regression.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.