← All posts

Binreg in Stata: Odds Ratios, Risk Ratios, and Why Modified Poisson Is Preferred

Clinical Epidemiology ResearchUniqcret doctor knowledgesData Analytics or StatisticsStata [Data Analytics]
On this page

1. Introduction

Binary outcomes are common in clinical and epidemiological research. Examples include disease status (yes/no), mortality (dead/alive), or treatment response (success/failure). In Stata, several commands can be used to analyze binary outcomes, including logistic, binreg, and glm with different families and links.

Although these commands may appear similar, they estimate different effect measures, rely on different assumptions, and can behave very differently in practice. This article clarifies what binreg does, how it compares with alternative commands, and why researchers often choose other approaches instead.


2. What Is binreg?

binreg fits generalized linear models (GLMs) using the binomial family and allows the user to choose different link functions corresponding to different effect measures:

binreg optionLink functionEffect measure
or (default)LogitOdds Ratio (OR)
rrLogRisk Ratio (RR)
rdIdentityRisk Difference (RD)

Importantly:

binreg always uses the binomial family.Only the link function changes.


3. binreg, or vs logistic

Mathematical equivalence

binreg y x1 x2, or
logistic y x1 x2

These two commands:

Therefore:

binreg, or is simply an alternative interface to logistic regression.

Practical implication

Because logistic is:

👉 Logistic is generally preferred over binreg, or.


4. binreg, rr: Log-Binomial Regression

What it tries to do

binreg y x1 x2, rr

This fits a log-binomial model:

log ( P ( Y = 1 ∣ X ) ) = Xβ

and reports:

RR = exp(β)

This is attractive because risk ratios are intuitive and collapsible, unlike odds ratios.

Why binreg and rr often fail

The problem is not conceptual but mathematical.

If the model attempts to estimate μ > 1, the binomial likelihood becomes invalid. As a result:

This problem is well known and occurs frequently when:


5. Why Researchers Use Modified Poisson Instead

The alternative approach

glm y x1 x2, family(poisson) link(log) vce(robust) eform

This is known as modified Poisson regression.

Why this works

Although Poisson is traditionally used for count data:

The variance is misspecified, but this is corrected using robust (sandwich) standard errors.

The mean model is correct, and the inference is valid.


6. binreg, rd: Risk Difference Models

binreg y x1 x2, rd

This uses the identity link:

P ( Y = 1 ∣ X ) = Xβ

Advantages:

Limitations:

Thus, risk difference models are typically used only in simpler settings or when absolute effects are explicitly required.


7. Summary Comparison

CommandFamilyLinkEffectStabilityRecommended use
logisticBinomialLogitORVery highDefault for binary outcomes
binreg, orBinomialLogitORVery highEquivalent to logistic
binreg, rrBinomialLogRRLowRarely recommended
glm, binomial logBinomialLogRRLowSame issues as binreg, rr
Modified PoissonPoissonLogRRHighPreferred for RR
binreg, rdBinomialIdentityRDModerate–lowNiche use

8. Practical Guidance for Readers


9. Key Take-Home Message

binreg is a flexible binomial regression framework, but its log-link (RR) implementation is often numerically unstable. For this reason, modified Poisson regression has become the preferred method for estimating risk ratios from binary outcomes in modern epidemiology.

0
Message for International and Thai ReadersUnderstanding My Medical Context in ThailandRead more →Message for International and Thai ReadersUnderstanding My Broader Content Beyond MedicineRead more →

Comments

No comments yet. Be the first to share your thoughts.

Sign in to comment