statsmodels.stats.proportion.proportions_chisquare_allpairs

statsmodels.stats.proportion.proportions_chisquare_allpairs(count, nobs, multitest_method='hs')[source]

所有k个样本对的卡方比例检验

对所有成对比较进行比例的卡方检验。 备择假设是双侧的

Parameters:
count{int, array_like}

在nobs次试验中成功的次数。

nobsint

试验或观察的次数。

multitest_methodstr

这选择了用于多重检验p值校正的方法,该方法在结果中作为默认使用。 它可以是 multipletesting 中可用的任何方法。 默认值是 Holm-Sidak ‘hs’。

Returns:
resultAllPairsResults instance

返回的结果实例包含多个统计数据,例如p值,并且提供了使用非默认multitest_method的附加方法。

注释

耶茨连续性校正不可用。


Last update: Oct 16, 2024