tests_auto | R Documentation |
This function takes a variable and a grouping variable as arguments, and returns a statistcal test to use, expressed as a single-term formula.
tests_auto(var, grp)
var |
The variable to test |
grp |
The variable for the groups |
This function uses appropriate non-parametric tests depending on the number of levels (wilcoxon.test for two levels and kruskal.test for more), and fisher.test with fallback on chisq.test on error for factors.
A statistical test function
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.