conversion.rsq.to.f.RdHelper function to convert between Cohen's f and R-squared.
rsq.to.f(r.squared.full, r.squared.reduced = 0, verbose = TRUE)
f.to.rsq(f, r.squared.full = NULL, verbose = TRUE)Cohen's f.
Cohen's f-squared.
R-squared for the full model.
R-squared for the reduced model.
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. doi:10.3389/fpsyg.2012.00111
f.to.rsq(f = 0.10) # small
#> f.squared f r.squared.full r.squared.reduced
#> 0.01000000 0.10000000 0.00990099 0.00000000
f.to.rsq(f = 0.25) # medium
#> f.squared f r.squared.full r.squared.reduced
#> 0.06250000 0.25000000 0.05882353 0.00000000
f.to.rsq(f = 0.40) # large
#> f.squared f r.squared.full r.squared.reduced
#> 0.160000 0.400000 0.137931 0.000000