Fisher's exact test with n x m contingency table

버전 1.3.0.0 (3.66 KB) 작성자: Guangdi Li
Do you have problem with Fisher's exact test where the contingency table is more than 2*2?
다운로드 수: 3K
업데이트 날짜: 2011/9/20

라이선스 보기

Fisher's exact test is a statistical test used to determine if there are nonrandom associations between two categorical variables[1].
The job of Fisher's exact test with 2 x 2 or 2x 3 contingency table is already easily done by others. However, the one with n x m contingency table hasn't found , or with bad computation.
This function efficiently deals with Fisher's exact test with n x m contingency table.
As for the function :
[ Sig,PValue,ContigenMatrix ] = FisherExactTest( XVector,YVector )
Input : the data of two variables X,Y as XVector and YVector
Or you can just input the contingency table.
Output: "Sig" returns 1 if X and Y associate,otherwise 0
"PValue" returns the computed p-value
"ContigenMatrix" returns the n x m contingency table

Please start with "Controlcenter.m", there are two simple example for explanation. If you open the algorithm, clear description of the algorithm will be illustrated.
If there is anything wrong, or your personal need, please let me know, I will help you as soon as possible :-)

Reference:
[1] http://mathworld.wolfram.com/FishersExactTest.html

인용 양식

Guangdi Li (2024). Fisher's exact test with n x m contingency table (https://www.mathworks.com/matlabcentral/fileexchange/24379-fisher-s-exact-test-with-n-x-m-contingency-table), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2009a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Hypothesis Tests에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.3.0.0

infinite problem is fixed and a new version based on R is also provided

1.2.0.0

correct the description

1.1.0.0

make the function simpler than last version.

1.0.0.0