desctable (version 0.1.0)

tests_auto: Functions to choose a statistical test

Description

These functions take a variable and a grouping variable as arguments, and return a statistcal test to use, expressed as a single-term formula.

Usage

tests_auto(var, grp)

Arguments

var
The variable to test
grp
The variable for the groups

Value

A statistical test function

Details

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.