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 In hypergemetric notation out of N = m+n items r size is chosen; x is observed success
| 1 | exact2x2tests.hypergeom(x, m, n, r)
 | 
| x | - Numeric value representing no of success in attribute 1. | 
| m | - Numeric value representing Total no of attribute 1 | 
| n | - Numeric value representing Total no of attribute 2 | 
| r | - Numeric value representing Total number of success | 
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.regular
| 1 2 3 4 | ## Example taken from -p28 Ex3.1 of Upton, G. J. (2016).
## Values are x,m,n,r: related to a hypergeometric distribution (?dhyper, for further help)
x=1; m=3; n=10; r=4
exact2x2tests.hypergeom(x,m,n,r)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.