Described in Chapter 5 "The Ordered rx2 Table"

CochranArmitage_MH_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

CochranArmitage_MH_tests_rx2(mills_graubard_1987, c(1, 2, 3, 4, 5))
#> Cochran-Armitage test:          T =  1.352, P = 0.17639
#> Modified Cochran-Armitage test: T =  1.061, P = 0.28868
#> Mantel-Haenszel test:           T =  1.352, P = 0.17638
CochranArmitage_MH_tests_rx2(indredavik_2008, c(1, 2, 3, 4, 5))
#> Cochran-Armitage test:          T = -1.788, P = 0.07381
#> Modified Cochran-Armitage test: T = -1.894, P = 0.05820
#> Mantel-Haenszel test:           T = -1.790, P = 0.07351