CochranArmitage_MH_tests_rx2: The Cochran-Armitage, modified Cochran-Armitage, and...

View source: R/CochranArmitage_MH_tests_rx2.R

CochranArmitage_MH_tests_rx2R Documentation

The Cochran-Armitage, modified Cochran-Armitage, and Mantel-Haenszel tests for trend

Description

Described in Chapter 5 "The Ordered rx2 Table"

Usage

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))
CochranArmitage_MH_tests_rx2(indredavik_2008, c(1, 2, 3, 4, 5))

ocbe-uio/contingencytables documentation built on March 19, 2024, 4:30 a.m.