Skip to contents

Compares power calculations across different method combinations.

Usage

compare_power_methods(n, d, beta_cov, sigma, alpha = 0.05)

Arguments

n

Integer. Total sample size.

d

Numeric. Cohen's d.

beta_cov

Numeric. Covariate coefficient.

sigma

Numeric. Residual SD.

alpha

Numeric. Significance level.

Value

Data frame comparing power across methods.

Examples

# \donttest{
compare_power_methods(n = 100, d = 0.5, beta_cov = 0.4, sigma = 1)
#>           description     power      method covariate_method
#> 1       cohen + fixed 0.6924571       cohen            fixed
#> 2      theory + fixed 0.6968047      theory            fixed
#> 3    cohen + expected 0.6879996       cohen         expected
#> 4   theory + expected 0.6923516      theory         expected
#> 5 pwr.f2.test + fixed 0.6924571 pwr.f2.test            fixed
# }