f.to.rsq | R Documentation |
Helper 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)
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. |
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. |
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")}
f.to.rsq(f = 0.10) # small
f.to.rsq(f = 0.25) # medium
f.to.rsq(f = 0.40) # large
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.