EconPapers    
Economics at your fingertips  
 

CHOI_LR_TEST: Stata module to perform Choi's likelihood ratio test

William D. Dupont () and Walton Plummer ()
Additional contact information
William D. Dupont: Vanderbilt University School of Medicine

Statistical Software Components from Boston College Department of Economics

Abstract: choi_lr_test calculates the likelihood ratio (LR) test described in Choi et al. (2015). This test is conditioned on the total number of exposed subjects from a case-control study. The following statistics, conditioned on the marginal exposure rate, are also derived: the maximum likelihood estimate of the odds ratio for exposure in cases relative to controls; the LR under the null hypothesis that the odds ratio equals 1; the 1/6.8 likelihood support interval (LSI); and the 1/k LSI, where k is specified by the user. The p-value from this LR test is inferentially consistent with classical tests of normally distributed data as well as with likelihood ratios and support intervals based on this conditional likelihood function. The 1/6.8 LSI equals the 95% confidence interval for normally distributed random variables. This statistic and LSI are useful for tables with few subjects in which the asymptotic properties of classical test statistics are irrelevant and Fisher’s exact test is too conservative. It is particularly appropriate when one of the cells of the 2x2 table is empty.

Language: Stata
Requires: Stata version 14
Keywords: 2x2 tables; likelihood ratio test; likelihood support interval; ancillary statistic; conditionality principle (search for similar items in EconPapers)
Date: 2016-06-05, Revised 2018-09-24
Note: This module should be installed from within Stata by typing "ssc install choi_lr_test". The module is made available under terms of the GPL v3 (https://www.gnu.org/licenses/gpl-3.0.txt). Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations:

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/c/choi_lr_test.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/c/choi_lr_testi.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/c/choi_lr_support_interval_or_eq_0.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/c/choi_lr_support_interval_big_or.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/c/choi_lr_support_interval.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/c/choi_lr_hyperg_prob.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/c/choi_lr_hypergeom.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/n/nlFile-URL:http ... support_interval.ado program code (text/plain)
Our link check indicates that this URL is bad, the error code is: 404 Not Found
http://fmwww.bc.edu/repec/bocode/c/choi_lr_test.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/c/choi_lr_test.do sample do file (text/plain)
http://fmwww.bc.edu/repec/bocode/c/choi_lr_test.log sample do file (text/plain)
http://fmwww.bc.edu/repec/bocode/c/choi_lr_testdata.dta sample data file (application/x-stata)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s458190

Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php

Access Statistics for this software item

More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-04-14
Handle: RePEc:boc:bocode:s458190