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)

Arguments

delta_r2

The change in R-squared (numeric) when the predictors of interest are added to the model (i.e., R-squared of the full model minus R-squared of the base model).

r2_full

The R-squared (numeric) of the full model that includes the predictors of interest.

Value

The numeric value for Cohen's f-squared.

References

Cohen, J. (1988). Statistical power analysis for the behavioral sciences (2nd ed.). Hillsdale, NJ: Erlbaum.

Examples

# 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