Fisher's exact test for contingency tables other than 2 by 2

11 ビュー (過去 30 日間)
Theo
Theo 2015 年 6 月 5 日
回答済み: the cyclist 2018 年 3 月 29 日
Is there a built in function for Fisher's exact test when there are more than two classes of possible outcomes?

採用された回答

Star Strider
Star Strider 2015 年 6 月 5 日
Not built-in, but you can download Fisher's exact test with n x m contingency table from the File Exchange. The Comments indicate that it doesn’t calculate the p-value, but that calculation appears to be available at the linked-to MathWorld article on Fisher's Exact Test. However, that does not appear to be trivial, and could be computationally intractable considering the factorials involved.
There is probably a good reason Fisher’s Exact Test is usually restricted to 2x2 tables with low numbers of observations. It is most accurate in that instance, and the computations are tractable.
It is probably better to go with the Chi-Squared test if you have more categories and a large number of observations.

その他の回答 (2 件)

Walter Roberson
Walter Roberson 2015 年 6 月 5 日
No. However, you can use a File Exchange Contribution

the cyclist
the cyclist 2018 年 3 月 29 日
My preferred solution to this is this FEX contribution from Giuseppe Cardillo.

カテゴリ

Help Center および File ExchangeHypothesis Tests についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by