Checks the output of function two_sample_htest
and multi_sample_htest
.
check_tests(x)
TRUE
if x
has the following properties:
x
is a named list with length > 0.
The names of the list must not have duplicates.
The names may contain NA. Else an error.
Most hypothesis-test-functions in R like t.test
or chisq.test
return an object of class htest.
This object passes this checks.
Additional fields can be added to these objects and they will still pass this check.
Result of function two_sample_htest
or multi_sample_htest
.