add.test: Apply a test to a Contingency Tables object

Description Usage Arguments Details Value Author(s) See Also

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


DeducerRichOutput documentation built on May 2, 2019, 4:53 p.m.