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

f.to.rsqR Documentation

Conversion from Cohen's f to R-squared

Description

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

Usage

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

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

Arguments

f

Cohen's f.

r.squared.full

R-squared for the full model.

r.squared.reduced

R-squared for the reduced model.

verbose

logical; whether the output should be printed on the console. TRUE by default.

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.

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, 111. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.3389/fpsyg.2012.00111")}

Examples

  f.to.rsq(f = 0.10) # small
  f.to.rsq(f = 0.25) # medium
  f.to.rsq(f = 0.40) # large

pwrss documentation built on Sept. 16, 2025, 9:11 a.m.