I am doing a GLMM analysis using R, where I have 1 predictor variable (fixed-effect) with 4 levels. I am interested in doing a post-hoc multiple pairwise comparison within the 4 levels to see which ones are significant. I found out the following 4 possible methods:

1. Changing the reference level using 'relevel' and then doing the GLMM again to see the test-statistic and p-values of the levels compared to the new reference level.

2. Using 'glht' function in the multicomp package.

3. Using 'testInteractions' in the 'phia' package.

4. Using 'lsmeans' in the 'lsmeans' package.

Can anyone help me regarding which one is the best, and how to accurately do it? Also if there are any better methods?

More Bishwarup Paul's questions See All
Similar questions and discussions