Svoboda | Graniru | BBC Russia | Golosameriki | Facebook
skip to main content

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

Editor: John R. Rice Authors: Cyrus R. Mehta, Nitin R. PatelAuthors Info & Claims
ACM Transactions on Mathematical Software (TOMS), Volume 12, Issue 2
Pages 154 - 161
https://doi.org/10.1145/6497.214326
Published: 01 June 1986 Publication History

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.

Supplementary Material

FEXACT (643.gz) (643.gz)
Fisher's exact test on unordered r-by-c contingency tables Gams: L9b

References

[1]
BAKER, R.J. Exact distributions derived from two-way tables. J. Royal Stat. Soc. Series C, 26, 2 (1977), 199.-206.
[2]
GAIL, M., AND MANTEL, N. Counting the number of contingency tables with fixed margins. J. Am. Stat. Assoc. 72 (1977), 859-862.
[3]
HANCOCK, T.W. Remark on algorithm 434 {G2}. Exact probabilties for rxc contingency tables. Commun. ACM 18, 2 (Feb. 1975), 117-119.
[4]
KNUTH, D.E. The Art of Computer Programming. Vol. 3: Sorting and Searching. Addison- Wesley, Reading, Mass, 1973.
[5]
MARCH, D. L. Exact probabilities for rXc contingency tables. Commun. ACM 15, 11 (Nov. 1972), 991-992.
[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.
[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.
[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.
[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.
[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.
[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.

Cited By

View all
  • (2024)Virulence and Antimicrobial Resistance Profiles of Shiga Toxin-Producing Escherichia coli from River Water and Farm Animal Feces near an Agricultural Region in Northwestern MexicoMicrobiology Research10.3390/microbiolres1501002615:1(385-403)Online publication date: 8-Mar-2024
  • (2024)Using Exact Tests from Algebraic Statistics in Sparse Multi-way Analyses: An Application to Analyzing Differential Item FunctioningThe American Statistician10.1080/00031305.2024.2388526(1-24)Online publication date: 12-Aug-2024
  • (2024)Early treatment with fluvoxamine, bromhexine, cyproheptadine, and niclosamide to prevent clinical deterioration in patients with symptomatic COVID-19: a randomized clinical trialeClinicalMedicine10.1016/j.eclinm.2024.10251770(102517)Online publication date: Apr-2024
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

ACM Transactions on Mathematical Software  Volume 12, Issue 2
June 1986
96 pages
ISSN:0098-3500
EISSN:1557-7295
DOI:10.1145/6497
  • Editor:
  • John R. Rice
Issue’s Table of Contents

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 01 June 1986
Published in TOMS Volume 12, Issue 2

Permissions

Request permissions for this article.
Request Permissions

Check for updates

Badges

Author Tags

  1. graph theory
  2. spanning trees

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)182
  • Downloads (Last 6 weeks)31
Reflects downloads up to 21 Sep 2024

Other Metrics

Citations

Cited By

View all
  • (2024)Virulence and Antimicrobial Resistance Profiles of Shiga Toxin-Producing Escherichia coli from River Water and Farm Animal Feces near an Agricultural Region in Northwestern MexicoMicrobiology Research10.3390/microbiolres1501002615:1(385-403)Online publication date: 8-Mar-2024
  • (2024)Using Exact Tests from Algebraic Statistics in Sparse Multi-way Analyses: An Application to Analyzing Differential Item FunctioningThe American Statistician10.1080/00031305.2024.2388526(1-24)Online publication date: 12-Aug-2024
  • (2024)Early treatment with fluvoxamine, bromhexine, cyproheptadine, and niclosamide to prevent clinical deterioration in patients with symptomatic COVID-19: a randomized clinical trialeClinicalMedicine10.1016/j.eclinm.2024.10251770(102517)Online publication date: Apr-2024
  • (2024)Understanding the use of spectrum‐based fault localizationJournal of Software: Evolution and Process10.1002/smr.262236:6Online publication date: 5-Jun-2024
  • (2023)Comparative Genomic Analyses of Virulence and Antimicrobial Resistance in Citrobacter werkmanii, an Emerging Opportunistic PathogenMicroorganisms10.3390/microorganisms1108211411:8(2114)Online publication date: 19-Aug-2023
  • (2023)Homogeneity Test of the First-Order Agreement Coefficient in a Stratified DesignEntropy10.3390/e2503053625:3(536)Online publication date: 20-Mar-2023
  • (2023)Competency Management in Automotive Logistics Current Applications and Relevance for DigitalizationProceedings of the 2023 14th International Conference on E-Education, E-Business, E-Management and E-Learning10.1145/3588243.3588246(261-270)Online publication date: 1-Feb-2023
  • (2023)Investigation of luteal HCG supplementation in GnRH-agonist-triggered fresh embryo transfer cycles: a randomized controlled trialReproductive BioMedicine Online10.1016/j.rbmo.2023.103415(103415)Online publication date: Sep-2023
  • (2023)The caspase-8 and procaspase-3 expression in gastric cancer and non-cancer mucosa in relation to clinico-morphological factors and some apoptosis-associated proteinsAdvances in Medical Sciences10.1016/j.advms.2023.02.00168:1(94-100)Online publication date: Mar-2023
  • (2023)Comparative analysis of diagnostic ultrasound and histopathology for detecting cervical lymph node metastases in head and neck cancerJournal of Cancer Research and Clinical Oncology10.1007/s00432-023-05439-x149:19(17319-17333)Online publication date: 12-Oct-2023
  • Show More Cited By

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Get Access

Login options

Full Access

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media

View Issue’s Table of Contents