Description Usage Arguments Details Value References See Also Examples
View source: R/701.2x2-tests.R
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
| 1 | exact2x2tests.regular(ai, bi, ci, di)
 | 
| ai | - Numeric value representing True Positives | 
| bi | - Numeric value representing False Positives | 
| ci | - Numeric value representing False Negatives | 
| di | - Numeric value representing True Negatives | 
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
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 | 
[1] Upton, G. J. (2016). Categorical Data Analysis by Example. John Wiley & Sons.
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
| 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)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.