I have binomial response data with a single explanatory variable. In R I can write the model as something like
myglm = glm(success_rate ~ x, family='binomial', weights=n_attempts)
My question is whether the confidence intervals computed by confint(glm)
are correct, given that I'm using weights. The documentation suggests that they should be. But if I run a permutation test, randomly switching the order of x
, the coefficient of x
is significant at the 5% level about 15% of the time. This seems like utter madness and a ridiculously high false discovery rate relative to the ~5% you'd expect. The same thing happens with different predictors, too.
Any input would be much appreciated.