The Mantel-Haenszel test of association with column scores

Described in Chapter 6 "The Ordered 2xc Table"

MantelHaenszel_test_2xc(n, b = 0)

Arguments

n

the observed counts (a 2xc matrix)

b

scores assigned to the columns (if b=0, midranks will be used as scores)

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

MantelHaenszel_test_2xc(lydersen_2012a)
#> Mantel-Haenszel test of association: P = 0.1442, T = 2.132 (df=1)