# (1) From raw means and within-group variance:
cohen_f(mu = c(94, 91, 92, 83), sigma_squared = 67.375)
# Equal n weights are the default; equivalent with explicit equal n:
cohen_f(mu = c(94, 91, 92, 83), sigma_squared = 67.375, n = 6)
# Unequal n:
cohen_f(mu = c(94, 91, 92, 83), sigma_squared = 67.375, n = c(4, 6, 5, 5))
# (2) From eta_squared:
cohen_f(eta_squared = 0.10)
# (3) From sigma_m and sigma directly:
cohen_f(sigma_m = 4, sigma = 8)
Run the code above in your browser using DataLab