statsmodels.stats.proportion.proportions_chisquare_pairscontrol¶
-
statsmodels.stats.proportion.proportions_chisquare_pairscontrol(count, nobs, value=
None, multitest_method='hs', alternative='two-sided')[source]¶ 比较控制组与k组样本比例的卡方检验
对具有控制组(Dunnet’s检验)的成对比较进行比例的卡方检验。控制组假设为
count和nobs中的第一个元素。备择假设为双侧、较大或较小。- Parameters:¶
- count{
int, array_like} 在nobs次试验中成功的次数。
- nobs
int 试验或观察的次数。
- multitest_method
str 这选择了用于多重检验p值校正的方法,该方法在结果中作为默认使用。 它可以是
multipletesting中可用的任何方法。 默认值是 Holm-Sidak ‘hs’。- alternative
strin[‘two-sided’, ‘smaller’, ‘larger’] 备择假设,可以是双侧的或单侧检验中的任意一个。
- count{
- Returns:¶
- result
AllPairsResultsinstance 返回的结果实例包含多个统计数据,例如p值,并且提供了使用非默认
multitest_method的附加方法。
- result
注释
耶茨连续性校正不可用。
value和alternative选项尚未实现。
Last update:
Oct 16, 2024