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, uppfloats

lower and upper limit of equivalence region

nobsint

the number of trials or observations.

p_altfloat in (0, 1)

proportion under the alternative. If p_alt is None, then the midpoint of the equivalence region, 0.5 * (low + upp), is used.

alphafloat in (0, 1)

significance level of the test

Returns:
powerfloat

statistical power of the equivalence test.