Learn R Programming

contingencytables (version 3.1.0)

the_2x2_table_tests: The 2x2 table tests

Description

Wrapper for _test_2x2 functions on Chapter 4.

Usage

the_2x2_table_tests(n, gamma = 1e-04)

Value

NULL. This function should be called for its printed output

Arguments

n

frequency matrix

gamma

parameter for the Berger and Boos procedure

Table orientation

In most study designs, rows designate a grouping of the data, for instance, into treatment or exposure groups, while the columns indicate a dichotomous outcome, usually with the first column representing the outcome of interest. This designation of rows and columns may not be relevant in all study designs, please see the introduction to chapter 4 for details.

Examples

Run this code
# Example: A lady tasting a cup of tea
the_2x2_table_tests(tea)

# Example: Lampasona et al. (2013)
the_2x2_table_tests(lampasona_2013)

if (FALSE) {
  the_2x2_table_tests(perondi_2004) # Example: Perondi et al. (2004)
  the_2x2_table_tests(ritland_2007) # Example: Ritland et al. (2007)
}

Run the code above in your browser using DataLab