Multiple Comparisons

Learn about the post-hoc comparisons, which are also known as Tukey tests.

Introduction

It’s often helpful and necessary to compare the different levels within a single categorical variable. For example, we probably would like to know if our three predator treatments differ significantly from one another. There are two primary ways to do this:

  1. We can use the glht() function in the multcomp package. The word multcomp is short for “multiple comparisons,” and glht() stands for “general linear hypothesis test.”
  2. We can use the emmeans package to calculate the estimated marginal means from the model and pairwise differences between them.

Get hands-on with 1200+ tech skills courses.