skip to main content

ALGORITHM 643: FEXACT: a FORTRAN subroutine for Fisher's exact test on unordered r×c contingency tables

Published:01 June 1986Publication History
Skip Abstract Section

Abstract

The computer code for Mehta and Patel's (1983) network algorithm for Fisher's exact test on unordered r×c contingency tables is provided. The code is written in double precision FORTRAN 77. This code provides the fastest currently available method for executing Fisher's exact test, and is shown to be orders of magnitude superior to any other available algorithm. Many important details of data structures and implementation that have contributed crucially to the success of the network algorithm are recorded here.

Skip Supplemental Material Section

Supplemental Material

References

  1. 1 BAKER, R.J. Exact distributions derived from two-way tables. J. Royal Stat. Soc. Series C, 26, 2 (1977), 199.-206.Google ScholarGoogle Scholar
  2. 2 GAIL, M., AND MANTEL, N. Counting the number of contingency tables with fixed margins. J. Am. Stat. Assoc. 72 (1977), 859-862.Google ScholarGoogle Scholar
  3. 3 HANCOCK, T.W. Remark on algorithm 434 {G2}. Exact probabilties for rxc contingency tables. Commun. ACM 18, 2 (Feb. 1975), 117-119.Google ScholarGoogle Scholar
  4. 4 KNUTH, D.E. The Art of Computer Programming. Vol. 3: Sorting and Searching. Addison- Wesley, Reading, Mass, 1973. Google ScholarGoogle Scholar
  5. 5 MARCH, D. L. Exact probabilities for rXc contingency tables. Commun. ACM 15, 11 (Nov. 1972), 991-992. Google ScholarGoogle Scholar
  6. 6 MEHTA, C. R., AND PATEL, N.R. A network algorithm for the exact treatment of the 2xk contingency table. Commun. Stat. B9, 6 (1980), 649-664.Google ScholarGoogle Scholar
  7. 7 MEHTA, C. R., AND PATEL, N.R. A network algorithm for performing Fisher's exact test in rxc contingency tables. J. Am. Stat. Assoc. 78, 382 (1983), 427-434.Google ScholarGoogle Scholar
  8. 8 MEHTA, C. R., PATEL, N. R., AND TSIATIS, A. A. Exact significance testing to establish treatment equivalence with ordered categorical data. Biometrics 40, 3 (1984), 819-825.Google ScholarGoogle Scholar
  9. 9 MEHTA, C. R., PATEL, N. R., AND GRAY, R. On computing an exact confidence interval for the common odds ratio in several 2x2 contingency tables. J. Am. Stat. Assoc. 80, 392 (1985), 969-973.Google ScholarGoogle Scholar
  10. 10 PAGANO, M., AND HALVORSEN, K. An algorithm for finding the exact significance levels of rXc contingency tables. J. Am. Stat. Assoc. 76 (1981), 931-934.Google ScholarGoogle Scholar
  11. 11 VERBEEK, A., AND KROONENBERG, P. A survey of algorithms for exact distributions of test statistics in rxc contingency tables with fixed margins. Comput. Star. Data Anal. 3 (1985), 159-185.Google ScholarGoogle Scholar

Index Terms

  1. ALGORITHM 643: FEXACT: a FORTRAN subroutine for Fisher's exact test on unordered r×c contingency tables

                  Recommendations

                  Comments

                  Login options

                  Check if you have access through your login credentials or your institution to get full access on this article.

                  Sign in

                  Full Access

                  PDF Format

                  View or Download as a PDF file.

                  PDF

                  eReader

                  View online with eReader.

                  eReader