Skip to content
Prev 302376 / 398506 Next

Questionnaire Analysis virtually without continuous Variables

Hi Sacha,

You're right that this is not an R related question really (would be better somewhere like crossvalidated.com).

If basically everyone catches 0/1 birds, then I would consider dichotomizing:

Y <- as.integer(caught >= 1)

then check cross tabs to make sure there are no zero cells between predictors and outcome:

xtabs(~Y + dogs + guns, data=yourdata)

then use the glmer() function to model the nested random effects.

m <- glmer(Y ~ dog + gun + (1 | household) + (1 | village) + (1 | district), data = yourdata, family=binomial)

summary(m)

Cheers,

Josh
On Aug 4, 2012, at 7:12, Sacha Viquerat <dawa.ya.moto at googlemail.com> wrote: