Skip to contents

Compute the Eta squared effect size statistic.

Usage

eta_squared(data)

Arguments

data

Data.frame with the first column the values and the second column the group names

Value

Table with eta-squared attached to classic ANOVA decomposition

References

Navarro, D. J. (2015) Learning statistics with R: A tutorial for psychology students and other beginners. (Version 0.6) University of New South Wales. Sydney, Australia

Examples

data <- data.frame(
  "value" = c(rnorm(14, sd = 2), rnorm(6), rnorm(20, mean = 2)),
  "group" = c(rep("A", 14), rep("B", 6), rep("C", 20))
)
eta_squared(data)
#>             eta squared Df    Sum Sq   Mean Sq  F value      Pr(>F)
#> group         0.2339271  2  42.92991 21.464953 5.649137 0.007227652
#> Residuals     0.7660729 37 140.58843  3.799687       NA          NA