powered by
Converts Cohen's f to partial eta squared (\(\eta_p^2\)) using the standard definition in Cohen (1988).
cohensf_to_peta2(f)
A numeric vector of partial eta squared values.
A numeric vector of Cohen's f values. Each value must be greater than or equal to 0.
The conversion is defined as: $$\eta_p^2 = \frac{f^2}{1 + f^2}$$
This follows from the relationship: \(f = \sqrt{\eta_p^2 / (1 - \eta_p^2)}\)
Cohen, J. (1988). Statistical power analysis for the behavioral sciences (2nd ed.). Hillsdale, NJ: Lawrence Erlbaum Associates.
peta2_to_cohensf
# Convert a single Cohen's f value cohensf_to_peta2(0.25) # Convert multiple values cohensf_to_peta2(c(0.1, 0.25, 0.4))
Run the code above in your browser using DataLab