statsmodels.stats.proportion.TostProportionsResult#

class statsmodels.stats.proportion.TostProportionsResult(statistic, pvalue, compare, method, results_larger, results_smaller, title)[source]#

Result of tost_proportions_2indep.

Parameters:
statisticfloat

Test statistic of the one-sided test that has the larger pvalue.

pvaluefloat

p-value of the equivalence test given by the larger pvalue of the two one-sided tests.

compare{“diff”, “ratio”, “odds-ratio”}

Which comparison of the two proportions the test is for.

methodstr

Method used to compute the underlying one-sided tests.

results_largerProportions2indepTestResult

Results instance for the one-sided test at the lower equivalence margin.

results_smallerProportions2indepTestResult

Results instance for the one-sided test at the upper equivalence margin.

titlestr

Descriptive title of the equivalence test.

Attributes:
compare
method
pvalue
results_larger
results_smaller
statistic
title

Notes

Unpacks as statistic, pvalue = result. Other values are only accessible using attributes.

Methods

Properties