The Cochran-Armitage exact conditional and mid-P tests

Described in Chapter 5 "The Ordered rx2 Table"

CochranArmitage_exact_cond_midP_tests_rx2(n, a)

Arguments

n

the observed counts (an rx2 matrix)

a

scores assigned to the rows

Value

An object of the contingencytables_result class, basically a subclass of base::list(). Use the utils::str() function to see the specific elements returned.

Examples

if (FALSE) { # \dontrun{
CochranArmitage_exact_cond_midP_tests_rx2(mills_graubard_1987, c(1, 2, 3, 4, 5))
} # }
CochranArmitage_exact_cond_midP_tests_rx2(indredavik_2008, c(1, 2, 3, 4, 5))
#> Cochran-Armitage exact cond. test: P = 0.08579
#> Cochran-Armitage mid-P test:   mid-P = 0.07719