I used lme4 to run a mixed effects logistig regression (by calling glmer) in R and now I am trying to do post-hoc comparisons. As they are pairwise, Tukey should be OK,but I would like to manually adjust for how many tests the correction should be made - now it is made for 12 tests, but I am only intersted in 6 comparisons.
My code looks like this so far
for (i in seq_along(logmixed_ranks)) {
print(lsmeans(logmixed_ranks[[i]], pairwise~rating_ranks*indicator_var, adjust="tukey"))
}
Somehow I may need to use the following but I am not sure how.
p.adjust(p, method = p.adjust.methods, n = length(p))
Can anybody help? Thanks! Laura