statsmodels.stats.weightstats.CompareMeans.ttost_ind

method

CompareMeans.ttost_ind(low, upp, usevar='pooled')[source]

test of equivalence for two independent samples, base on t-test

Parameters
low, uppfloat

equivalence interval low < m1 - m2 < upp

usevarstring, ‘pooled’ or ‘unequal’

If pooled, then the standard deviation of the samples is assumed to be the same. If unequal, then Welsh ttest with Satterthwait degrees of freedom is used

Returns
pvaluefloat

pvalue of the non-equivalence test

t1, pv1tuple of floats

test statistic and pvalue for lower threshold test

t2, pv2tuple of floats

test statistic and pvalue for upper threshold test