atable (version 0.1.0)

check_tests: Checks the output of functions two_sample_htest and multi_sample_htest

Description

Checks the output of function two_sample_htest and multi_sample_htest.

Usage

check_tests(x)

Arguments

x

Result of function two_sample_htest or multi_sample_htest.

Value

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.