statsmodels.sandbox.stats.multicomp.MultiComparison.allpairtest
-
MultiComparison.allpairtest(testfunc, alpha=
0.05, method='bonf', pvalidx=1)[source]
对所有配对进行成对检验,并进行多重检验校正
在testfunc中给出的统计检验是为所有配对计算的,并且通过multipletests中的方法调整p值。p值校正是一般性的,仅基于p值,并不考虑假设的任何特殊结构。
- Parameters:
- testfunc
function 用于两个(独立)样本的测试函数。假设在位置 pvalidx 的返回值是 p 值。
- alpha
float 族错误率
- method
str 这指定了p值校正的方法。任何multipletests的方法都是可能的。
- pvalidx
int (default: 1) p值在testfunc返回值中的位置
- Returns:
- sumtab
SimpleTable instance 打印摘要表
- errors: TODO:
check if this is still wrong, I think it’s fixed.
results from multipletests are in different order
pval_corrected can be larger than 1 ???
Last update:
Oct 16, 2024