I am analyzing my binomial dataset using R using a generic linear mixed model (glmer, lme4-package). I wanted to make pairwise comparisons of a specific fixed effect ("Sound") using the Tukey post-hoc test (glht, multcomp-package).
Most of the work is working fine, but one of my fixed effect effects variables (βSoundCβ) has no variance at all (96 times β1β and zero value β0β), and it seems like the Tukey test can't handle this. All paired comparisons with this "SoundC" give a value of p 1.000, while some of them are clearly significant.
As a check, I changed one of 96 "1" to "0", after which I again got the normal p values ββand the significant differences in which I expected them, while the difference changed after my manual change.
Does anyone have a solution? If not, can I use the results of my modified dataset and report my change manually?
Playable example:
Response <- c(1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,1,1,0, 0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0,1,1,0, 1,1,0,1,1,0,1,1,1,1,0,0,1,1,0,1,1,0,1,1,0,1,1,0,1) Data <- data.frame(Sound=rep(paste0('Sound',c('A','B','C')),22), Response, Individual=rep(rep(c('A','B'),2),rep(c(18,15),2)))