Learn R Programming

contingencytables (version 3.1.0)

MantelHaenszel_test_2xc: The Mantel-Haenszel test of association with column scores

Description

The Mantel-Haenszel test of association with column scores

Described in Chapter 6 "The Ordered 2xc Table"

Usage

MantelHaenszel_test_2xc(n, b = 0)

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.

Arguments

n

the observed counts (a 2xc matrix)

b

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

Examples

Run this code
MantelHaenszel_test_2xc(lydersen_2012a)

Run the code above in your browser using DataLab