IDEAS home Printed from https://ideas.repec.org/a/tsj/stataj/v12y2012i3p505-514.html
   My bibliography  Save this article

Exact and mid-p confidence intervals for the odds ratio

Author

Listed:
  • Morten W. Fagerland

    (Oslo University Hospital)

Abstract

The odds ratio is a frequently used effect measure for two independent binomial proportions. Unfortunately, the confidence intervals that are available for it in Stata and other standard software packages are generally wider than necessary, particularly for small-sample and exact estimation. The performance of the Cornfield exact interval—the only widely available exact interval for the odds ratio—may be improved by incorporating a small modification attributed to Baptista and Pike (1977, Journal of the Royal Statistical Society, Series C 26: 214–220). A further improvement is achieved when the Baptista–Pike method is combined with the mid-p approach. In this article, I present the command merci (mid-p and exact odds-ratio confidence intervals) and its immediate version mercii, which calculate the Cornfield exact, Cornfield mid-p, Baptista-Pike exact, and Baptista-Pike mid-p confidence intervals for the odds ratio. I compare these intervals with three well-known logit intervals. I strongly recommend the Baptista-Pike mid-p interval.

Suggested Citation

  • Morten W. Fagerland, 2012. "Exact and mid-p confidence intervals for the odds ratio," Stata Journal, StataCorp LP, vol. 12(3), pages 505-524, September.
  • Handle: RePEc:tsj:stataj:v:12:y:2012:i:3:p:505-514
    Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj12-3/st0271/
    as

    Download full text from publisher

    File URL: http://www.stata-journal.com/article.html?article=st0271
    File Function: link to article purchase
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Alan Agresti, 1999. "On Logit Confidence Intervals for the Odds Ratio with Small Samples," Biometrics, The International Biometric Society, vol. 55(2), pages 597-602, June.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Sören Möller & Linda Juel Ahrenfeldt, 2021. "Estimating Relative Risk When Observing Zero Events—Frequentist Inference and Bayesian Credibility Intervals," IJERPH, MDPI, vol. 18(11), pages 1-9, May.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Weber, Frank & Knapp, Guido & Ickstadt, Katja & Kundt, Günther & Glass, Anne, 2020. "Zero-cell corrections in random-effects meta-analyses," OSF Preprints qjh5f, Center for Open Science.
    2. Agresti, Alan & Gottard, Anna, 2007. "Nonconservative exact small-sample inference for discrete data," Computational Statistics & Data Analysis, Elsevier, vol. 51(12), pages 6447-6458, August.
    3. Ali Fadhaa & Zhang Jian, 2017. "Mixture model-based association analysis with case-control data in genome wide association studies," Statistical Applications in Genetics and Molecular Biology, De Gruyter, vol. 16(3), pages 173-187, August.
    4. Alan Agresti & Matilde Bini & Bruno Bertaccini & Euijung Ryu, 2008. "Simultaneous Confidence Intervals for Comparing Binomial Parameters," Biometrics, The International Biometric Society, vol. 64(4), pages 1270-1275, December.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:tsj:stataj:v:12:y:2012:i:3:p:505-514. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F. Baum or Lisa Gilmore (email available below). General contact details of provider: http://www.stata-journal.com/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.