Stata's exlogistic fits exact logistic regression models and provides more reliable statistical inference with small-sample datasets. The dependent variable can be Bernoulli (0 or 1) or binomial (the number of successes in n trials). Exact joint hypothesis tests can be performed, and predictions with exact confidence intervals can be obtained.
Stata’s exact logistic regression provides better coverage in small samples than does standard logistic regression.
It also provides parameter estimates and confidence intervals where standard asymptotic methods cannot.
Such cases include small-data problems with binary regressors for which the outcome is 1 whenever the regressor is 1.
In the example below, every treated patient exhibits a positive response. Standard logistic regression cannot estimate the treatment effect. Stata’s exlogistic can:
. exlogistic response treatment gender hypertension Enumerating sample-space combinations: Observation 1: Enumerations = 2 Observation 2: Enumerations = 3 (omitted) Observation 56: Enumerations = 6329 Observation 57: Enumerations = 3528 note: CMLE estimate for treatment is +inf; computing MUE. Exact logistic regression Number of obs = 57 Model score = 14.56624 Pr >= score = 0.0013
response | Odds ratio Suff. 2*Pr(Suff.) [95% conf. interval] | |
treatment | 21.66646* 20 0.0003 3.302679 +inf | |
gender | 1.303983 22 0.9448 .2871768 6.012212 | |
hypertens~n | 2.431485 25 0.3072 .5447126 11.66149 | |
Parameter estimates, standard errors, and CIs are calculated on the basis of permutation without recourse to asymptotic assumptions and results.
Not only is the treatment effect estimated, but tests of significance and reported confidence intervals are based on exact methods.
Stata also includes exact Poisson regression for count data.
Learn
Free webinars
NetCourses
Classroom and web training
Organizational training
Video tutorials
Third-party courses
Web resources
Teaching with Stata
© Copyright 1996–2024 StataCorp LLC. All rights reserved.
×
We use cookies to ensure that we give you the best experience on our website—to enhance site navigation, to analyze usage, and to assist in our marketing efforts. By continuing to use our site, you consent to the storing of cookies on your device and agree to delivery of content, including web fonts and JavaScript, from third party web services.
Cookie Settings
Last updated: 16 November 2022
StataCorp LLC (StataCorp) strives to provide our users with exceptional products and services. To do so, we must collect personal information from you. This information is necessary to conduct business with our existing and potential customers. We collect and use this information only where we may legally do so. This policy explains what personal information we collect, how we use it, and what rights you have to that information.
These cookies are essential for our website to function and do not store any personally identifiable information. These cookies cannot be disabled.
This website uses cookies to provide you with a better user experience. A cookie is a small piece of data our website stores on a site visitor's hard drive and accesses each time you visit so we can improve your access to our site, better understand how you use our site, and serve you content that may be of interest to you. For instance, we store a cookie when you log in to our shopping cart so that we can maintain your shopping cart should you not complete checkout. These cookies do not directly store your personal information, but they do support the ability to uniquely identify your internet browser and device.
Please note: Clearing your browser cookies at any time will undo preferences saved here. The option selected here will apply only to the device you are currently using.