exact2x2tests.regular: This function implements 9 methods for testing 2x2 tables and...

Description Usage Arguments Details Value References See Also Examples

View source: R/701.2x2-tests.R

Description

This function implements 9 methods for testing 2x2 tables and outputs the p-value This is the regular function taking the 2x2 table as input

Usage

1
exact2x2tests.regular(ai, bi, ci, di)

Arguments

ai

- Numeric value representing True Positives

bi

- Numeric value representing False Positives

ci

- Numeric value representing False Negatives

di

- Numeric value representing True Negatives

Details

Nine methods - IRWIN, Central, Blaker.exact, MP_IR, MP_BK, Exact.less, Exact.greater, Pearson.Chisq, Pearson.Chisq.Yates.cc are implimented from exact2x2 package (7 methods) and 2 methods from base stats

Value

A dataframe with

IRWIN

Fisher exact test with 'minlike'

Central

Fisher exact test with 'central'

Blaker.exact

Blaker exact test

MP_IR

Fisher exact test with 'minlike', hypergeometric

MP_BK

Blaker exact test, hypergeometric

Exact.less

Fisher exact test if one sided is less

Exact.greater

Fisher exact test if one sided is greater

Pearson.Chisq

Pearson Chisquared test

Pearson.Chisq.Yates.cc

Pearson Chisquared test with Yates continuity correction

References

[1] Upton, G. J. (2016). Categorical Data Analysis by Example. John Wiley & Sons.

See Also

fisher.exact{blaker.exact} with additional parameters. This function calls exact2x2 functions. chisq.test with additional parameters. This function calls base stats function.

Other Test methods: Partition.table, Proportion.diagnostic.test, exact2x2tests.hypergeom

Examples

1
2
3
## Example taken from -p28 Ex3.1 of Upton, G. J. (2016).
ai=1; bi=3; ci=10; di=4
exact2x2tests.regular(ai,bi,ci,di)

RajeswaranV/vcdPlus documentation built on May 27, 2019, 7:28 a.m.