mdes: Determine the minimum detectable effect size

Description Usage Arguments Value

View source: R/model_power.R

Description

Given desired power, degrees of freedom, and alpha, this function returns the minimum detectable effect size as an f-squared statistic.

Usage

1
mdes(desired_power = 0.8, num_df, den_df, alpha = 0.05)

Arguments

desired_power

Defaults to .8, but this can be changed to test for the minimum detectable effect size for other levels of power.

num_df

Numerator degrees of freedom for the test.

den_df

Denominator degrees of freedom for the test.

alpha

Alpha level for the test.

Value

Returns an f-squared statistic representing the minimum detectable effect size with the desired power, degrees of freedom, and alpha.


michaelasher/glmResources documentation built on Dec. 21, 2021, 5:56 p.m.