3
$\begingroup$

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.

$\endgroup$
1
$\begingroup$

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.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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