add.cross.strata.test: Adds a cross strata test to contingency table output

Description Usage Arguments Details Value Author(s) See Also

Description

Over-rides add.cross.strata.test() function in package Deducer to facilitate HTML output

Usage

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

Arguments

tables

An object of class contingency.tables

name

The name of the hypothesis test

htests

A function or list of functions which take a three dimensional array as it's 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

Adds two features to the add.cross.strata.test function in package Deducer: 1. Recovers the name of the strata and 2. Captures warnings 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.mantel.haenszel, add.test, print.contin.tests, withConditions


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