The TukeyHSD(model) function performs Tukeyโs Honestly Significant Difference (HSD) post-hoc test to determine which specific pairs of species differ after conducting an ANOVA.
- Test: Compare the mean sepal lengths of each pair of species: setosa vs. versicolor, setosa vs. virginica, and versicolor vs. virginica.
- ANOVA tells us whether there is a significant difference among the species
- Tukeyโs HSD tells us exactly which species differ from one another
The output provides the estimated difference in means, confidence intervals, and adjusted p-values for each pair.
In simplest terms: The ANOVA tells you whether (IF) any species differ in average sepal length, while Tukeyโs HSD test tells you which (WHAT ONES) specific species differ from one another.