These functions take a variable and a grouping variable as arguments, and return a statistcal test to use, expressed as a single-term formula.
tests_auto(var, grp)
The variable to test
The variable for the groups
A statistical test function
Currently, only tests_auto
is defined, and picks between t test, wilcoxon, anova, kruskal-wallis and fisher depending on the number of groups, the type of the variable, the normality and homoskedasticity of the distributions.