1. Learn
  2. /
  3. Courses
  4. /
  5. Intro to Statistics with R: Analysis of Variance (ANOVA)

Exercise

The effect sizes

In the previous exercises you discovered that both simple effects are significant, so why is there an interaction effect?

The definition of an interaction effect states that the effect of one variable changes across levels of the other variable. For example, you might expect the effect of conversation to be greater when driving conditions are difficult than when they are relatively easy.

Unfortunately, it is not quite that simple. In order to really understand the different effect sizes, you should make use of the etaSquared() function:

etaSquared(anova_object, anova = TRUE)

Instructions

100 XP
  • Calculate \(\eta^2\) for the easy driving condition with the help of etaSquared() and print the result to the console.
  • Calculate \(\eta^2\) for the difficult driving condition with the help of etaSquared() and print the result to the console.