Calculates multi sample hypothesis tests depending on the class of its input.
multi_sample_htest(value, group, ...)# S3 method for logical
multi_sample_htest(value, group, ...)
# S3 method for factor
multi_sample_htest(value, group, ...)
# S3 method for character
multi_sample_htest(value, group, ...)
# S3 method for ordered
multi_sample_htest(value, group, ...)
# S3 method for numeric
multi_sample_htest(value, group, ...)
An atomic vector.
A factor, same length as value
.
Passed to methods.
A named list with length > 0.
Most hypothesis-test-functions in R like t.test
or chisq.test
return an
object of class 'htest'
. 'htest'
-objects are a suitable output for function two_sample_htest
.
Function check_tests
checks if the output is suitable for further processing.
logical
: Casts to factor and then calls method multi_sample_htest
again.
factor
: Calls chisq.test
.
character
: Casts value
to factor and then calls method multi_sample_htest
again.
ordered
: Calls kruskal.test
.
numeric
: Calls multi_sample_htest
's method on ordered(value)
.
Calculates multi sample hypothesis tests depending on the class of its input.
Results are passed to function format_tests
for the final table.
If you are not pleased with the current hypothesis tests you may alter these functions.
But you must keep the original output-format, see section Value.
Function check_tests
checks if the output of statistics is suitable for further processing.
The function multi_sample_htest
is essentially a wrapper
to standardize the arguments of various hypothesis test functions.