statsmodels.stats.proportion.power_binom_tost#
- statsmodels.stats.proportion.power_binom_tost(low, upp, nobs, p_alt=None, alpha=0.05)[source]#
Power for exact binomial equivalence test
- Parameters:
- low, upp
floats lower and upper limit of equivalence region
- nobs
int the number of trials or observations.
- p_alt
floatin(0, 1),optional proportion under the alternative. If p_alt is None, then the midpoint of the equivalence region,
0.5 * (low + upp), is used.- alpha
floatin(0, 1),optional significance level of the test
- low, upp
- Returns:
- power
float statistical power of the equivalence test.
- power