The function determines the appropriate sample size for the expected effect with the Two One‐Sided Test method (TOST). TOST is a frequentist statistical testing approach aimed at establishing equivalence between two groups.
Arguments
- tpr
Numeric. The desired long run probability of obtaining a significant result with TOST, given Delta.
- eq_band
Numeric. The chosen width of the region for practical equivalence, i.e. the SESOI.
- delta
Numeric. The expected population effect size. In most cases, this value will be zero.
- alpha
Numeric. The level of significance.
- max_n
Integer. The maximum number of participants per group (both groups are assumed to have equal sample size).