Calculates the Cohen's f-squared effect size, a measure of local effect size for a set of predictors in a hierarchical regression model.
delta_R2_to_f2(delta_r2, r2_full)
The numeric value for Cohen's f-squared.
Cohen, J. (1988). Statistical power analysis for the behavioral sciences (2nd ed.). Hillsdale, NJ: Erlbaum.
# Calculate f-squared for a set of predictors that added 5% to the variance
# explained, where the final model explained 30% of the variance.
delta_R2_to_f2(delta_r2 = 0.05, r2_full = 0.30)
#> [1] 0.07142857