Learn R Programming

pwrss (version 1.3.1)

f.to.rsq: Conversion from Cohen's f to R-squared

Description

Helper function to convert between Cohen's f and R-squared.

Usage

f.to.rsq(f, r.squared.full = NULL, verbose = 0)

Value

f

Cohen's f.

f.squared

Cohen's f-squared.

r.squared.full

R-squared for the full model.

r.squared.reduced

R-squared for the reduced model.

Arguments

f

Cohen's f.

r.squared.full

R-squared for the full model.

verbose

1 by default (returns results), if 0 no output is printed on the console.

References

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

Selya, A. S., Rose, J. S., Dierker, L. C., Hedeker, D., & Mermelstein, R. J. (2012). A practical guide to calculating Cohen's f2, a measure of local effect size, from PROC MIXED. Frontiers in Psychology, 3, Article 111. https://doi.org/10.3389/fpsyg.2012.00111

Examples

Run this code

  f.to.rsq(f = 0.14) # small
  f.to.rsq(f = 0.39) # medium
  f.to.rsq(f = 0.59) # large

Run the code above in your browser using DataLab