Tell me more ×
Cross Validated is a question and answer site for statisticians, data analysts, data miners and data visualization experts. It's 100% free, no registration required.

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.

share|improve this question

1 Answer

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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