mu_from_ES: Convenience function to calculate the means for between...

View source: R/mu_from_ES.R

mu_from_ESR Documentation

Convenience function to calculate the means for between designs with one factor (One-Way ANOVA). Can be used to determine the means that should yield a specified effect sizes (expressed in Cohen's f).

Description

Convenience function to calculate the means for between designs with one factor (One-Way ANOVA). Can be used to determine the means that should yield a specified effect sizes (expressed in Cohen's f).

Usage

mu_from_ES(K, ES)

Arguments

K

Number of groups (2, 3, or 4)

ES

Effect size (eta-squared)

Value

Returns vector of means

References

Albers, C., & Lakens, D. (2018). When power analyses based on pilot data are biased: Inaccurate effect size estimators and follow-up bias. Journal of Experimental Social Psychology, 74, 187–195. https://doi.org/10.1016/j.jesp.2017.09.004

Examples

## Medium effect size (eta-squared), 2 groups
ES <- 0.0588
K <- 2
mu_from_ES(K = K, ES = ES)

Superpower documentation built on May 17, 2022, 5:08 p.m.