|
|
| File Information |
| Description |
This file performs the Fisher exact probability test for a table of frequency data cross-classified according to two categorical variables, each of which has two levels or subcategories (2x2). It is a non-parametric statistical test used to determine if there are nonrandom associations between the two categorical variables. Fisher's exact test is used to calculate an exact P-value with small number of expected frequencies, for which the Chi-square test is not appropriate (in case the total number of observations is less than 20 or the number of frequency cells are less than 5). This test is based upon the hypergeometric probability. The test was proposed in the 1934 edition of the famous Ronald Aylmer Fisher's book 'Statistical Methods for Research Workers'.
It needs to input the four frequency cells.
The output consists of the negative, positive and both P-values. [decide to use Left, Right or 2-Tail before collecting (or looking at) the data].
If user does not put any output arguments, file returns a P-value table. |
| Acknowledgements |
This submission has inspired the following:
HWtest
|
| MATLAB release |
MATLAB 5.3 (R11)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (17) |
| 20 Dec 2004 |
Stan Letovsky
|
|
|
| 04 Jan 2005 |
Stan Letovsky
|
|
|
| 08 May 2005 |
Antonio Fortes
|
|
|
| 23 Aug 2005 |
Claudia Lerma
|
|
|
| 12 Dec 2005 |
Dorian Arnold
|
|
|
| 08 Feb 2006 |
James J. Cai
|
|
|
| 29 May 2006 |
yair weiss
|
|
|
| 22 Jun 2006 |
gideon dror
|
|
|
| 01 Nov 2007 |
Ji Cling
|
|
|
| 01 Nov 2007 |
Michael Hamman
|
|
|
| 12 Sep 2008 |
Ji Cling
|
|
|
| 30 Nov 2009 |
Alex Garcia Lancaster
|
|
|
| 14 Feb 2011 |
Trevor Agus
|
|
|
| 14 Feb 2011 |
Trevor Agus
|
|
|
| 14 Feb 2011 |
Trevor Agus
|
|
|
| 16 Jun 2011 |
Tobias
|
|
|
| 13 Jan 2012 |
Andrew Z
|
|
|
| Updates |
| 05 Oct 2004 |
It was added an appropriate format to cite this file. |
| 02 Nov 2004 |
Output was improved. |
| 12 Nov 2004 |
Due that Matlab could not work for factorials greater than 170. We use the function sum([log(x+1)......]), in order to avoid further calculation problems. |
| 15 Nov 2004 |
Help text was improved. |
| 22 Nov 2004 |
Text was improved. |
| 28 Dec 2004 |
File was updated to work for very large cells value. |
| 03 Jan 2005 |
File was improved. |
| 03 Jan 2005 |
P-value results were improved. |
| 05 Jan 2005 |
It was implemented output arguments. |
| 22 Dec 2005 |
Text was improved. |
| 22 Dec 2005 |
Input was improved. |
|
Contact us at files@mathworks.com