statsmodels.stats.proportion.binom_tost#

statsmodels.stats.proportion.binom_tost(count, nobs, low, upp)[source]#

Exact TOST test for one proportion using binomial distribution

Parameters:
count{int, array_like}

the number of successes in nobs trials.

nobsint or array_like

the number of trials or observations.

low, uppfloat or array_like

lower and upper limit of equivalence region

Returns:
pvaluefloat or ndarray

p-value of equivalence test

pval_low, pval_uppfloat or ndarray

p-values of lower and upper one-sided tests