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
}
}