You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
707B

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/tests.R
  3. \name{tests_auto}
  4. \alias{tests_auto}
  5. \title{Function to choose a statistical test}
  6. \usage{
  7. tests_auto(var, grp)
  8. }
  9. \arguments{
  10. \item{var}{The variable to test}
  11. \item{grp}{The variable for the groups}
  12. }
  13. \value{
  14. A statistical test function
  15. }
  16. \description{
  17. This function takes a variable and a grouping variable as arguments, and returns a statistcal test to use, expressed as a single-term formula.
  18. }
  19. \details{
  20. This function uses appropriate non-parametric tests depending on the number of levels (wilcoxon.test for two levels
  21. and kruskal.test for more), and fisher.test with fallback on chisq.test on error for factors.
  22. }