if (groups == 2) {
if (data is normal? ) {
t-test (homogenous)
Welch's t-test (not homogenous)
} else {
Wilcoxon-Mann-Whitney
}
} else if (groups >= 3) {
if( data is normal? ) {
ANOVA ( homogenous)
Specific group-pair Welch's t-test (not homogenous)
} else {
Kruskal-Wallis
}
}
4种差异检验
当分组数为2时,依据数据是否符合正态分布,选择t-test或Wilcoxon-Mann-Whitney测试。分组数大于等于3时,正常情况下使用ANOVA,否则采用Kruskal-Wallis测试。对于不齐同方差情况,使用Welchst-test进行特定组对比较。

被折叠的 条评论
为什么被折叠?



