Get startedGet started for free

Pairwise comparisons

Finally, let us look at pairwise comparisons for the simple effects. You can do this with the Tukey post-hoc test: TukeyHSD(anova_object).

This exercise is part of the course

Intro to Statistics with R: Analysis of Variance (ANOVA)

View Course

Exercise instructions

  • Run a TukeyHSD() test on aov_ab_1.
  • Run a TukeyHSD() test on aov_ab_2.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

## aov_ab_1 and aov_ab_2 are preloaded in your workspace

# Tukey for easy driving


# Tukey for difficult driving
Edit and Run Code