Apply a test to a Contingency Tables object

Share:

Description

Over-rides the add.test function in package Deducer to facilitate HTML output.

Usage

1
add.test(tables, name, htests, types = c("asymptotic", "monte.carlo", "exact"))

Arguments

tables

An object of class contingency.tables

name

Name of the test

htests

A function or list of functions which take a matrix as its argument and returns an object of class htest

types

A character vector with the same number of items as htests, indicating what type of test was done

Details

In package Deducer, add.test applies a supplied list of tests to all of the tables in the tables argument. The add.test function in package DeducerRichOutput adds two features to that function: 1. recovering the names of the strata in a multi-strata contingency table and 2. capturing warning messages using withConditions

Value

A contingency.tables object identical to tables, but with the test applied to each table.

Author(s)

Bill Altermatt

See Also

add.cross.strata.test, chi.squared.test, likelihood.test, fishers.exact.test, cor.test, kruskal.test, withConditions

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.