Link and Family: One Picks Your Effect Measure, the Other Your Standard Error

On this page
อ่านฉบับภาษาไทย (Thai version)
Abstract
With a binary outcome, choose the effect measure before the model: risks of 10% and 20% give a risk difference of 10%, a risk ratio of 2.0 and an odds ratio of 2.25. The link sets what a coefficient means: the logit link gives an odds ratio and the log link a risk ratio, whichever family is used. The family sets the variance: a binary outcome has variance p(1 − p), while the Poisson assumes p, so modified Poisson borrows the Poisson fit and replaces its standard error with a robust sandwich one. Log-binomial regression has the right variance but must keep every fitted risk, e raised to the linear predictor, at or below 1, so its optimizer searches against a wall and may fail to converge. Logistic regression never meets that wall, and modified Poisson removes it. This article follows each step with worked numbers, from the linear predictor to the optimizer's path along the wall.
Three questions hiding inside one word
A perinatal team is analysing neonatal death in a birth cohort. The outcome is 0 or 1: the baby died in the neonatal period or did not. The exposure is antenatal care (ANC), and the analysis plan lists logistic regression, log-binomial regression, modified Poisson regression and robust standard errors. It reads like four competing models, and it is hard to see why one study needs so many.
The confusion comes from the word model, which here mixes three separate questions:
- Which effect do I want to report?
- Which link do I use?
- Which variance do I assume?
Separate these three, and everything becomes much simpler.
Choose the effect measure first
The deepest point is that there are several models because they answer different effect measures, or use different ways of computing one. Suppose the outcome is coded 0 or 1, for example neonatal death:
- unexposed group: risk = 10%;
- exposed group: risk = 20%.
From the same data we can answer in several ways.
Same data, three answers
| What is asked | Answer |
|---|---|
| Risk difference | 20% − 10% = 10% |
| Risk ratio | 20% / 10% = 2.0 |
| Odds ratio | (0.20/0.80)/(0.10/0.90) = 2.25 |
Logistic regression gives an odds ratio
Logistic regression models the logit, the logarithm of the odds:
$$\operatorname{logit}(p) = \log\left(\frac{p}{1-p}\right) = \beta_0 + \beta_1 X$$Here $p$ is the risk of the outcome, $X$ the exposure (1 if exposed, 0 if not), and $\beta_0$ and $\beta_1$ the coefficients the regression estimates. Therefore
$$e^{\beta_1} = OR$$This is the one and only reason logistic regression gives an odds ratio. It is not wrong; it answers a different question.
Suppose a logistic model gives $OR = 3.9$. Do not write that the risk is 3.9 times higher. It means that the odds are 3.9 times higher. Especially when the outcome is common, the odds ratio can sit far from the risk ratio.
If I want the risk ratio directly
We need a model of the form
$$\log(p) = \beta_0 + \beta_1 X$$where $\log$ is the natural logarithm. Follow it step by step.
-
Exponentiate both sides
\[ p = e^{\beta_0 + \beta_1 X} \]
The risk is the exponential of the right-hand side.
-
Unexposed group
\[ p_0 = e^{\beta_0} \]
Put X = 0.
-
Exposed group
\[ p_1 = e^{\beta_0 + \beta_1} \]
Put X = 1.
-
Divide the two risks
\[ \frac{p_1}{p_0} = e^{\beta_1} \]
The baseline term cancels and only the exposure coefficient is left.
Result: $RR = e^{\beta_1}$: under a log link the exponentiated coefficient is the risk ratio.
Why both log-binomial and modified Poisson?
Because both use the same log link.
A log-binomial model assumes the outcome is binomial and uses the log link [1]:
$$Y \sim \text{Binomial}, \quad \log(p) = X\beta$$Here $X\beta$ is short for the whole right-hand side, $\beta_0 + \beta_1 X$ plus any other terms.
Modified Poisson regression uses a Poisson working model, a distribution borrowed for the fitting rather than believed [2]:
$$Y \sim \text{Poisson}$$but it still uses $\log(p) = X\beta$, exactly as before. So in both models the coefficient is read the same way:
$$e^{\beta} = RR$$This is the point that makes people ask: if both give a risk ratio, why build two models? The answer:
Log-binomial is built to fit a binary outcome directly, but it is harder to compute.
Modified Poisson accepts a variance model that does not match a binary outcome so that fitting becomes easier, then uses a robust standard error to repair the variance.
Separate the link from the family
This is the root of the whole topic. Think of a model as two pieces:
$$\boxed{\text{Family}} + \boxed{\text{Link}}$$The link function connects the risk to the right-hand side of the equation, and it decides what the coefficient means [3, 4]:
- logit link, $\log\left(\frac{p}{1-p}\right) = X\beta$, so the coefficient gives an odds ratio;
- log link, $\log(p) = X\beta$, so the coefficient gives a risk ratio.
The family is the distribution assumed for the outcome. Its job here is to say how the variance is thought of.
Family = how the variance is thought of
A real binary outcome has the binomial variance, $\operatorname{Var}(Y) = p(1-p)$. The Poisson family instead assumes $\operatorname{Var}(Y) = p$, which is not right for a binary outcome. This rule linking the variance to the mean is the family's variance function. Take $p = 0.30$.
-
What a binary outcome really has
\[ p(1-p) = 0.3(0.7) = 0.21 \]
The true variance of a 0 or 1 outcome with a risk of 0.30.
-
What the Poisson family assumes
\[ \operatorname{Var}(Y) = 0.30 \]
The Poisson sets the variance equal to the mean.
Result: The Poisson family thinks the variance is 0.30 when it is really 0.21, so a standard error built on the Poisson variance is wrong for a binary outcome.
What the robust standard error is for
First separate it from the coefficient. The estimate $\hat\beta$ and its standard error $SE(\hat\beta)$ are two different things.
- The coefficient tells the effect, for example $e^{\beta_1} = 1.89$.
- The standard error tells the uncertainty around the coefficient. It is what builds the confidence interval and the P value.
In modified Poisson the Poisson variance is wrong for a binary outcome, so the ordinary standard error may be wrong too. The model therefore uses a
$$\boxed{\text{robust sandwich standard error}}$$so that inference stays valid even though the assumed variance function is wrong. A robust (sandwich) standard error estimates the variance from the observed residuals rather than from the assumed variance [2]. What it can and cannot repair is the subject of part 4 of this series.
Why log-binomial needs no modifying
A binary outcome really is binomial, so the binomial variance, $\operatorname{Var}(Y) = p(1-p)$, is already right. Conceptually the model is very natural:
$$\boxed{\text{Binary outcome}} \rightarrow \boxed{\text{Binomial family}} \rightarrow \boxed{\text{log link}} \rightarrow RR$$The problem is the constraint $0 \le p \le 1$. Log-binomial sets
$$p = e^{X\beta}$$and if $X\beta > 0$, then $e^{X\beta} > 1$, a probability that cannot exist.
The fitting algorithm, the optimizer that searches for the coefficients, must therefore look for the answer inside a narrow space where every observation has $p_i \le 1$. In some datasets this ends in a convergence failure: the algorithm never settles on stable estimates [5].
Why modified Poisson avoids this
A Poisson model does not force the fitted mean to stay at or below 1, so it accepts, for example,
$$\hat p = 1.03$$Read as a real probability, that is impossible. But the optimization becomes much easier. This is the trade-off [6].
Log-binomial versus modified Poisson
| Log-binomial | Modified Poisson | |
|---|---|---|
| Correct binary distribution | Yes | No: a working family |
| Log link | Yes | Yes |
| Gives a risk ratio | Yes | Yes |
| Probability kept at or below 1 | Yes | No |
| Convergence | May have problems | Generally easier |
| Robust standard error needed | Not essential in principle | Essential |
Why the crude risk ratios are exactly the same
Suppose the only covariate is a binary exposure, $X = 0$ or $X = 1$. The model then has just enough parameters to produce two risks, $p_0$ and $p_1$, so it fits both groups exactly at their observed risks. Suppose
-
Risk in the unexposed group
\[ p_0 = 0.0067241 \]
Both models reproduce this observed risk exactly.
-
Risk in the exposed group
\[ p_1 = 0.0139787 \]
Both models reproduce this one too.
-
Risk ratio, from either model
\[ RR = \frac{0.0139787}{0.0067241} = 2.0789 \]
Log-binomial or modified Poisson, the ratio is the same.
Result: The crude model is essentially asking only: what is the risk in the exposed group divided by the risk in the unexposed group? Both models reach the same answer, 2.0789.
Why adjusted models may not match exactly
Add covariates:
$$\log(p_i) = \beta_0 + \beta_1 \text{ANC}_i + \beta_2 \text{Age}_i + \beta_3 \text{SES}_i + \cdots$$where ANC is antenatal care and SES socioeconomic status. Now each person $i$ has a risk $p_i$ of their own. The binomial and the Poisson families use different variances, and so different weights, when they estimate $\beta$. The two models may then give
$$RR = 1.886733 \quad \text{and} \quad RR = 1.886706$$a small difference.
Why a rare outcome makes them even closer
The binomial variance is $p(1-p)$ and the Poisson variance is $p$. Take $p = 0.0088$.
-
One minus the risk
\[ 1 - p = 0.9912 \]
Almost 1 when the outcome is rare.
-
Binomial variance
\[ p(1-p) = 0.0088 \times 0.9912 = 0.00872 \]
Hardly different from the Poisson variance, p = 0.0088.
Result: The binomial and Poisson families see the variance almost alike, so it is no surprise that the results come out nearly identical.
A large gap is not automatically interaction
A common rule says: if the two adjusted methods differ clearly, suspect interaction. That is too strong. Interaction is one possible cause, not the only one. When log-binomial and modified Poisson differ clearly, the cause may be any of several kinds of model misspecification:
- an interaction that was not included;
- a continuous covariate that is really nonlinear but was entered as linear;
- a wrong functional form;
- omitted covariates;
- a model that forces one common risk ratio when the risk ratio really differs across covariates;
- extreme fitted risks.
One more caution: modified Poisson generally converges very easily, but it should not be said to converge 100% of the time.
Everything in one tree
With a binary outcome, start with one question: what do I want to report?
Binary outcome
│
What effect do I want?
│
┌─────────────────┼─────────────────┐
│ │ │
OR RR RD
│ │ │
logit link log link identity link
│ │
Logistic ┌──────┴──────┐
regression │ │
│ │
Log-binomial Modified Poisson
│ │
Binomial Poisson working
family family
│ │
RR = exp(b) RR = exp(b)
│
Robust SESo there are not many models to memorise. There are only two questions:
- Which effect do I want: OR, RR or RD?
- If I want RR, how will I estimate it: log-binomial, or modified Poisson with a robust standard error?
A real Poisson model has μ, not p
Writing $\log(p) = X\beta$ for modified Poisson looks odd, because an ordinary Poisson regression has no $p$. A real Poisson regression looks like this:
$$Y_i \sim \text{Poisson}(\mu_i)$$with the log link
$$\boxed{\log(\mu_i) = X_i\beta}, \quad \text{that is} \quad \mu_i = \exp(X_i\beta)$$Here $\mu_i$ is the expected count, the mean count, not a probability. For example, take the number of hospital admissions in one year, $Y_i = 0, 1, 2, 3, \ldots$, and the model
$$\log(\mu_i) = \beta_0 + \beta_1 \text{Treatment}_i$$Then
$$e^{\beta_1} = \frac{\mu_1}{\mu_0}$$which is a count ratio or a rate ratio, depending on the setting.
Put a binary outcome in, and μ becomes p
Modified Poisson puts a binary outcome, $Y_i \in \{0, 1\}$, into that model. A binary variable has one key property: its mean is its probability.
-
The mean of a 0 or 1 variable
\[ E(Y) = 0(1-p) + 1(p) = p \]
So $E(Y_i) = P(Y_i = 1) = p_i$.
-
The Poisson mean model
\[ \log(E[Y_i]) = X_i\beta \]
This is how the Poisson model is written in general.
-
Replace the mean by the risk
\[ \log(p_i) = X_i\beta \]
Because $E[Y_i] = p_i$ for a binary outcome.
Result: This is why modified Poisson looks so much like log-binomial.
Three models side by side
| Model | Distribution | Mean equation | Outcome and effect |
|---|---|---|---|
| Real Poisson | $Y \sim \text{Poisson}(\mu)$ | $\log(\mu) = X\beta$ | A count, such as the number of infections |
| Log-binomial | $Y \sim \text{Binomial}(p)$ | $\log(p) = X\beta$ | 0 or 1; $e^{\beta} = RR$ |
| Modified Poisson | Pretends $Y \sim \text{Poisson}(\mu)$, though $Y$ is really 0 or 1 | $\log(\mu) = X\beta$; since $\mu = E(Y) = p$, this is $\log(p) = X\beta$ | 0 or 1; $e^{\beta} = RR$ |
The most important picture
Put the mean model at the top, and the three models fall into place:
Mean model
│
log(mean)
│
┌─────────────┴─────────────┐
│ │
Count outcome Binary outcome
│ │
E(Y) = μ count E(Y) = p
│ │
log(μ) = Xβ log(p) = Xβ
│ │
Poisson regression ┌────────┴────────┐
│ │
Log-binomial Modified Poisson
│ │
Binomial variance Poisson variance
p(1-p) p
│
wrong variance
│
robust SEThe most accurate sentence is this one:
A real Poisson regression is written $\log(\mu) = X\beta$. In modified Poisson, a binary $Y$ has $E(Y) = p$, so $\mu$ equals $p$ in the mean model and the equation can be written $\log(p) = X\beta$, even though the Poisson variance assumption is wrong.
And this is why modified Poisson gives a risk ratio although it is called Poisson: we use the Poisson mean structure but do not believe the Poisson variance, so we use a robust standard error instead.
A probability above 1 never comes from the data
In reality a probability can never exceed 1. A value of $p > 1$ does not come from the real data. It comes from a temporary value the model tries while it searches for $\beta$. So keep the real data and the estimating equation apart.
The real data are fine. In the unexposed group, 20/100 people have the outcome, so $p_0 = 0.20$. In the exposed group, 40/100 do, so $p_1 = 0.40$. Everything lies between 0 and 1, as it should.
The optimizer tries coefficients it does not yet know
The regression does not know the answer at the start. We only tell it
$$\log(p) = \beta_0 + \beta_1 X, \quad \text{that is} \quad p = e^{\beta_0 + \beta_1 X}$$and the computer must search for the best $\beta_0$ and $\beta_1$. On the way it may try many sets of values. Take $X = 1$.
-
A trial that works
\[ \beta_0 = -1.5,\ \beta_1 = 0.7: \quad p = e^{-1.5 + 0.7} = e^{-0.8} = 0.45 \]
A risk of 0.45 is possible.
-
A trial that cannot work
\[ \beta_0 = -0.2,\ \beta_1 = 0.5: \quad X\beta = -0.2 + 0.5 = 0.3, \quad p = e^{0.3} = 1.35 \]
A probability of 135% is impossible.
-
What 1.35 means
It does not mean that the data say the risk is 135%. It means that the set of coefficients the optimizer just tried cannot be used.
Result: This is the root of the problem: a value above 1 belongs to a trial set of coefficients, not to the data.
Why the log link allows such numbers
Write $\eta = X\beta$ for the whole right-hand side of the equation, the linear predictor (the end of this article looks at it closely). Under the log link
$$p = e^{\eta}$$and its range is
$$0 < e^{\eta} < \infty$$Look at a few values:
$$\begin{aligned} \eta = -2 &\Rightarrow p = e^{-2} = 0.135 \\ \eta = -1 &\Rightarrow p = 0.368 \\ \eta = 0 &\Rightarrow p = 1 \end{aligned}$$But $\eta = 0.1$ gives $p = 1.105$, and $\eta = 1$ gives $p = 2.718$.
The exponential function itself does not know that we are using it for a probability. All it knows is that $e^x > 0$. To make it a probability we have to add a constraint:
$$\boxed{X_i\beta \le 0 \quad \text{for every person}}$$because if $X_i\beta \le 0$, then $e^{X_i\beta} \le 1$.
This is why logistic regression fits more easily
Look at the inverse of the logit link:
$$p = \frac{e^{X\beta}}{1 + e^{X\beta}}$$Whatever $X\beta$ is, the result is a valid probability. If $X\beta = -10$, then $p \approx 0$. If $X\beta = 0$, then $p = 0.5$. If $X\beta = 10$, then $p \approx 1$, but it never goes above 1:
$$\boxed{-\infty < X\beta < \infty \;\Rightarrow\; 0 < p < 1}$$This is a huge advantage of the logistic link.
The log link and the logit link, value by value
Compare the two. Under log-binomial, $p = e^{\eta}$:
η = -3 → p = 0.05 valid
η = -1 → p = 0.37 valid
η = 0 → p = 1.00 valid (the edge)
η = 0.2 → p = 1.22 invalid
η = 1 → p = 2.72 invalidso it has to force $\eta \le 0$. Under logistic, $p = e^{\eta}/(1 + e^{\eta})$:
η = -3 → p = 0.047
η = -1 → p = 0.269
η = 0 → p = 0.500
η = 1 → p = 0.731
η = 3 → p = 0.953
η = 100 → p ≈ 1All of these are valid. This is the deep difference between the log link and the logit link.
How a log-binomial fit has to search
The real parameter space of a log-binomial model is
$$\boxed{\{\beta : X_i\beta \le 0 \text{ for every } i\}}$$and the computer must find $\beta$ only inside this space.
The trouble grows with the number of predictors. With
$$\log(p) = \beta_0 + \beta_1 X_1 + \beta_2 X_2 + \beta_3 X_3 + \cdots$$the model needs $\beta_0 + \beta_1 X_{i1} + \beta_2 X_{i2} + \cdots \le 0$ for every observation. One person may be old, exposed and severely ill, so that the linear predictor sits very close to zero:
$$X_i\beta = -0.0001, \quad p_i = e^{-0.0001} \approx 0.9999$$The optimizer wants to move a coefficient a little further to fit everyone else better. But moving to $X_i\beta = +0.001$ would give $p_i = 1.001$, which is forbidden. The optimizer is walking right along the wall:
INVALID
p > 1
│
│ ← the wall, p = 1
───────────────────┤
● │ ← the MLE may sit very close to here
↗ │
optimizer│
↗ │
valid region │
p < 1 │The MLE, the maximum likelihood estimate, is the set of coefficients the fit is looking for.
Where modified Poisson fixes it
Modified Poisson says: I will not enforce the ceiling $p \le 1$ during the optimization. It uses
$$\log(\mu) = X\beta, \quad \mu = e^{X\beta}$$and the Poisson allows $\mu = 0.2,\ 1,\ 2,\ 10,\ \ldots$, because for a count a mean above 1 is not strange at all. The optimizer runs more freely, so it converges more easily.
Used with a binary $Y$, $E(Y) = p$, so the coefficient estimates the risk ratio. But because we are deliberately using the Poisson on a binary outcome, the variance is wrong, and a
$$\boxed{\text{robust standard error}}$$is required.
The Poisson stretches the search space, not the probability
The picture to see is that the Poisson does not stretch probability. It stretches the space in which the optimizer is allowed to search for coefficients.
Let $\eta = X\beta$. Log-binomial and Poisson both use $\mu = e^{\eta}$, the exponential curve $y = e^x$, and the line $y = 1$ is the ceiling of a probability. Log-binomial reads $y$ as $p$, so it can use only the left side, $\eta \le 0$:
$$\eta = -2 \Rightarrow p = 0.135, \quad \eta = -0.5 \Rightarrow p = 0.607, \quad \eta = 0 \Rightarrow p = 1$$but $\eta = 0.2 \Rightarrow p = 1.22$ is no longer allowed. So log-binomial has only this much room to move:
η
<-----------------------------|----------------------->
0
VALID | INVALID
p < 1 | p > 1
-3 -2 -1 -0.5 0 +0.5 +1
↓ ↓ ↓ ↓ ↓ ↓ ↓
0.05 0.14 0.37 0.61 1.00 1.65 2.72
↑
the wall
How the optimizer bounces off the wall
Now watch how the computer searches. Suppose it starts at $\eta = -0.5$, where $p = e^{-0.5} = 0.61$. The data say that moving the coefficient up a little should fit better, so the optimizer wants to walk
-0.5 → -0.3 → -0.1 → +0.1
-
The step that crosses the wall
\[ \eta = +0.1 \;\Rightarrow\; p = e^{0.1} = 1.105 \]
Log-binomial has to stop at once: this step is forbidden.
-
Back off and shrink the step
Try +0.1: no. Back off. Try −0.05: yes. Try −0.01: yes.
Try +0.005: no. Back off. Try −0.002: yes. And so on.
Result: The search behaves like someone looking for the best spot who keeps hitting a wall and bouncing back and forth. That is the convergence problem.
What the Poisson does differently
The Poisson does not say that $\mu$ is a probability. It says $\mu$ is a mean count. So $\mu = e^{\eta}$ may be 0.5, 1, 2, 10 or 100, and there is no ceiling at 1. The optimizer's space becomes:
η
<------------------------------------------------------>
-3 -2 -1 0 +1 +2
↓ ↓ ↓ ↓ ↓ ↓
0.05 0.14 0.37 1 2.72 7.39
all usable for the PoissonIf the optimizer walks $-0.5 \to -0.3 \to -0.1 \to +0.1 \to +0.2$ and then back to $-0.05$, the Poisson says: walk on, I can still compute the likelihood and the estimating equation at every point. It can pass through the region that, read as a probability, would exceed 1 on its way to the best coefficients.
That is what “fits more easily” means. It does not mean that $p > 1$ has become real. It means:
$$\boxed{\text{no wall blocks the optimizer during the search}}$$Real data have many people, so the problem grows
Suppose there are 4 people, with
$$\eta_i = \beta_0 + \beta_1 X_{1i} + \beta_2 X_{2i}$$Log-binomial needs $\eta_i \le 0$ for every one of them. The optimizer wants to raise $\beta_1$ by 0.1 to fit people 1 to 3 better.
One person can block the whole step
| Person | η now | \u03b7 after raising $\beta_1$ by 0.1 |
|---|---|---|
| Person 1 | −1.2, valid | −1.1, valid |
| Person 2 | −0.8, valid | −0.7, valid |
| Person 3 | −0.3, valid | −0.2, valid |
| Person 4 | −0.01, almost at the wall | +0.09, invalid |
Modified Poisson takes the wall away
For log-binomial, the allowed coefficients form a closed region, and the best point may sit right at its edge:
feasible coefficients
______
/ \
/ \
/ ● | ← the optimum sits at the edge
/ /
/__________/
moving outside = probability > 1 = forbiddenFor modified Poisson there is no such boundary:
no boundary p ≤ 1
──────────────────────────────────
↗
↗ ●
↗
the optimizer moves freely in every direction
──────────────────────────────────So numerical algorithms such as Newton-Raphson or iteratively reweighted least squares (IRLS) do not have to keep asking whether a step will push someone's predicted risk above 1, and they converge much more easily.
It can still be used for a binary outcome because, for $Y = 0, 1$, $E(Y) = p$. Modified Poisson uses the mean equation $\log E(Y \mid X) = X\beta$, which is $\log p = X\beta$, so $e^{\beta_1} = RR$. What it borrows from the Poisson is a way of estimating the mean that has no boundary. The Poisson variance, $\operatorname{Var}(Y) = \mu$, is wrong for a binary outcome, whose real variance is $\operatorname{Var}(Y) = p(1-p)$, so it is corrected with a robust standard error.
What η is: a name for the right-hand side
$\eta$ (the Greek letter eta) is not a new variable from the data. It is only a short name for what sits on the right-hand side of the regression equation. Take
$$\log(p) = \beta_0 + \beta_1 X$$To avoid writing it out every time, we name it
$$\boxed{\eta = \beta_0 + \beta_1 X}$$so the equation shortens to $\log(p) = \eta$, which solves back to $p = e^{\eta}$. $\eta$ is called the linear predictor.
Eta, worked through
Suppose $\beta_0 = -2$ and $\beta_1 = 0.7$, and this person has $X = 1$.
-
Add up the right-hand side
\[ \eta = \beta_0 + \beta_1 X = -2 + 0.7(1) = -1.3 \]
This is the person's linear predictor.
-
Apply the log-binomial link
\[ \log(p) = \eta = -1.3 \]
Under log-binomial, eta is the log of the risk.
-
Turn it back into a risk
\[ p = e^{-1.3} \approx 0.27 \]
The inverse of the log link gives the risk.
Result: The order is always $X \rightarrow \beta_0 + \beta_1 X \rightarrow \eta \rightarrow \text{link}^{-1} \rightarrow p$.
η can be any number; the link converts it
With several variables it works the same way, for example
$$\eta = \beta_0 + \beta_1(\text{ANC}) + \beta_2(\text{Age}) + \beta_3(\text{SES})$$$\eta$ is the total score the regression computes for each person, before it is turned back into a probability or risk.
The key points: $\eta$ is not a probability; it may be negative, positive or any number at all; and it is the link function that converts $\eta$ into the quantity we want:
- logistic: $\eta = \log\dfrac{p}{1-p}$;
- log-binomial: $\eta = \log(p)$;
- Poisson: $\eta = \log(\mu)$.
So $\eta$ really is just
$$\boxed{\eta = X\beta}$$shorthand for the intercept plus each coefficient times its predictor.
Common misreadings and their fixes
-
“An odds ratio of 3.9 means the risk is 3.9 times higher.”
Logistic regression reports odds, not risks, and when the outcome is common the two can be far apart.
Fix: Write that the odds are 3.9 times higher. If a risk ratio is the effect you want, choose a log-link model.
-
“The risk ratio comes from the Poisson or the binomial family.”
Log-binomial and modified Poisson use different families yet give the same kind of coefficient.
Fix: The risk ratio comes from the log link. The family sets the variance, and with it the standard error.
-
“If the adjusted log-binomial and modified Poisson results differ clearly, there is interaction.”
Interaction is one possible cause among several kinds of model misspecification.
Fix: Check the model specification first: a missing interaction, a nonlinear continuous covariate, the functional form, omitted covariates, a forced common risk ratio and extreme fitted risks.
-
“The outcome is rare, so use modified Poisson.”
Modified Poisson estimates a risk ratio for common outcomes too.
Fix: Rarity matters for a different question: whether the odds ratio is close to the risk ratio.
-
“Modified Poisson always converges.”
It generally converges very easily, but not 100% of the time.
Fix: Check convergence for modified Poisson as for any other fit.
-
“A fitted value of 1.35 means a risk of 135%.”
A probability above 1 never comes from real data; it is a trial value the optimizer produced while searching.
Fix: Read it as a set of coefficients that cannot be used, not as a risk.
-
“The Poisson fits easily, so it is the better distribution for binary data.”
The Poisson variance is wrong for a binary outcome.
Fix: “Fits easily” means easier optimization without the wall; the wrong variance is the reason the robust standard error is required.
Glossary
- linear predictor (ตัวทำนายเชิงเส้น (linear predictor))
- The right-hand side of the regression equation, $\eta = X\beta$; it can take any value.
- link function (ฟังก์ชันเชื่อมโยง (link function))
- The function that connects the risk, or the mean, to the linear predictor; it fixes what the coefficient means (logit: odds ratio; log: risk ratio).
- family (family (การแจกแจงของผลลัพธ์))
- The distribution assumed for the outcome; it fixes how the variance is thought of, and so the standard error.
- variance function (ฟังก์ชันความแปรปรวน (variance function))
- How the variance depends on the mean: $p(1-p)$ for the binomial, $p$ (or $\mu$) for the Poisson.
- log-binomial model (แบบจำลอง log-binomial)
- A binomial family with a log link; it gives the risk ratio directly but must keep every $X_i\beta \le 0$.
- modified Poisson regression (Poisson ดัดแปลง (modified Poisson regression))
- Poisson regression with a log link and a robust standard error, used on a binary outcome to estimate a risk ratio.
- boundary
- The edge of the coefficients a log-binomial model may use, where some person's fitted risk reaches 1: the wall.
- convergence
- The point where the fitting algorithm's successive estimates stop changing.
- sandwich standard error (ค่าคลาดเคลื่อนมาตรฐานแบบแซนด์วิช (robust standard error))
- A robust standard error estimated from the observed residuals; it keeps inference valid when the assumed variance is wrong.
References
- Wacholder S. Binomial regression in GLIM: estimating risk ratios and risk differences. Am J Epidemiol. 1986;123(1):174-184. doi:10.1093/oxfordjournals.aje.a114212 https://doi.org/10.1093/oxfordjournals.aje.a114212
- Zou G. A modified Poisson regression approach to prospective studies with binary data. Am J Epidemiol. 2004;159(7):702-706. doi:10.1093/aje/kwh090 https://doi.org/10.1093/aje/kwh090
- Nelder JA, Wedderburn RWM. Generalized linear models. J R Stat Soc Ser A. 1972;135(3):370-384. doi:10.2307/2344614 https://doi.org/10.2307/2344614
- McCullagh P, Nelder JA. Generalized linear models. 2nd ed. London: Chapman and Hall; 1989. doi:10.1007/978-1-4899-3242-6 https://doi.org/10.1007/978-1-4899-3242-6
- Williamson T, Eliasziw M, Fick GH. Log-binomial models: exploring failed convergence. Emerg Themes Epidemiol. 2013;10:14. doi:10.1186/1742-7622-10-14 https://doi.org/10.1186/1742-7622-10-14
- Naimi AI, Whitcomb BW. Estimating risk ratios and risk differences using regression. Am J Epidemiol. 2020;189(6):508-510. doi:10.1093/aje/kwaa044 https://doi.org/10.1093/aje/kwaa044
Key takeaways
- Choose the effect measure first: risks of 10% and 20% give a risk difference of 10%, a risk ratio of 2.0 and an odds ratio of 2.25.
- The link sets what the coefficient means (logit: odds ratio; log: risk ratio) and the family sets the variance, so the risk ratio comes from the log link, not from the word Poisson or binomial.
- Modified Poisson = Poisson regression + log link + robust standard error: it borrows the Poisson fit for the coefficient but not its variance, which is p instead of the binary p(1 − p).
- Under the log link p = e^η has no ceiling, so log-binomial must keep every person's η at or below 0; one person near that wall can block a whole step, and the fit may fail to converge.
- Binary outcome: logistic gives OR; log-binomial gives RR directly; if log-binomial has convergence problems, use modified Poisson with robust SE to estimate RR.
Related in the wiki: [[risk-regression-models-epidemiology]] [[glm-families-effect-measures]]