Learn R Programming

pwranova (version 1.0.3)

cohensf_to_peta2: Convert Cohen's f to Partial Eta Squared

Description

Converts Cohen's f to partial eta squared (\(\eta_p^2\)) using the standard definition in Cohen (1988).

Usage

cohensf_to_peta2(f)

Value

A numeric vector of partial eta squared values.

Arguments

f

A numeric vector of Cohen's f values. Each value must be greater than or equal to 0.

Details

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)}\)

References

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

See Also

peta2_to_cohensf

Examples

Run this code
# 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