Skip to content
Prev 18026 / 20628 Next

Running corrections for multiple comparisons in glmer

you could  "just" use p.adjust(), something like this:

library(lme4)
gm1 <- glmer(cbind(incidence, size - incidence) ~ period + (1 | herd),
                   data = cbpp, family = binomial)
cc <- coef(summary(gm1))
cc <- cbind(cc,adjust.p=p.adjust(cc[,"Pr(>|z|)"],"holm"))


  The general machinery in the multcomp package (especially the glht
function) should work.

This looks useful:

https://thebiobucket.blogspot.com/2011/06/glmm-with-custom-multiple-comparisons.html

  The bottom line is that most standard multiple-comparisons or
pairwise-comparisons machinery should "just work" with glmer fits.
(There are some open questions about what you're doing: it's a bit
unusual for people to apply multiple comparisons corrections on a set of
"only" 6 parameters specified a priori: Tukey adjustments to post hoc
pairwise comparisons are much more common ...)
On 2019-10-31 10:36 a.m., Francesco Romano wrote: