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
countinteger or array_like

the number of successes in nobs trials.

nobsinteger

the number of trials or observations.

low, uppfloats

lower and upper limit of equivalence region

Returns
pvaluefloat

p-value of equivalence test

pval_low, pval_uppfloats

p-values of lower and upper one-sided tests