Skip to contents

Conversion between Cohen's f and Eta-squared

Usage

f.to.etasq(f, verbose = 1)

Arguments

f

Cohen's f.

verbose

1 by default (returns test, hypotheses, and results), if 2 a more detailed output is given (plus key parameters and definitions), if 0 no output is printed on the console.

Value

eta.squared

(Partial) Eta-squared.

f.squared

Cohen's f².

f

Cohen's f.

References

Cohen, J. (1988). Statistical power analysis for the behavioral sciences (2nd ed.). Lawrence Erlbaum Associates.

Examples

f.to.etasq(f = 0.10) # small
#> eta.squared   f.squared           f 
#>  0.00990099  0.01000000  0.10000000 
f.to.etasq(f = 0.25) # medium
#> eta.squared   f.squared           f 
#>  0.05882353  0.06250000  0.25000000 
f.to.etasq(f = 0.40) # large
#> eta.squared   f.squared           f 
#>    0.137931    0.160000    0.400000