Learn R Programming

contingencytables (version 3.1.0)

Exact_cond_midP_tests_rxc: Exact conditional and mid-P tests for the rxc table

Description

Exact conditional and mid-P tests for the rxc table: the Fisher-Freeman-Halton, Pearson, likelihood ratio, Kruskal-Wallis, linear-by-linear, and Jonckheere-Terpstra tests.

Described in Chapter 7 "The rxc Table"

Usage

Exact_cond_midP_tests_rxc(n)

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 (an rxc matrix)

Examples

Run this code
Exact_cond_midP_tests_rxc(table_7.3)  # a 3x2 table
if (FALSE) {
  Exact_cond_midP_tests_rxc(table_7.6) # a 3x3 table
}

Run the code above in your browser using DataLab