Determine sample size with the Classical power analysis method
Source:R/ssp_power_traditional.R
ssp_power_traditional.Rd
This method is used to estimate the minimum sample size that a design needs to reach a statistical power, given a desired significance level and expected effect size.
Arguments
- tpr
Numeric. The desired long-run probability of obtaining a significant result with a one-sided t-test, given Delta.
- delta
Numeric. The expected population effect size.
- max_n
Integer. The maximum number of participants per group (both groups are assumed to have equal sample size).
- alpha
Numeric. The level of significance.