Tutorials › Generalized Linear Models › Log Links And Multiplicative Mean Changes

Link Functions and Scale · Tutorial 111 of 981

Log Links And Multiplicative Mean Changes

Learn to interpret a log-link coefficient as a ratio of means and to calculate the associated, baseline-dependent difference.

Beginner 9 min read

What You'll Learn

  • Define a log-link mean model and identify the coefficient for a covariate.
  • Derive the mean ratio for a one-unit increase while other predictor terms remain fixed.
  • Calculate the ratio and additive difference for a finite covariate change.
  • Translate a coefficient into a percentage change without confusing it with a percentage-point change.
  • Recognize when an interaction changes the coefficient interpretation.

From a Linear Predictor to a Mean Ratio

With an identity link, a coefficient describes an additive change in the mean. A log link gives a different interpretation: it makes a linear change in the predictor correspond to a multiplicative change in the mean. This is useful when a response has a positive mean and effects are naturally described as ratios, such as a mean that is 20% higher or lower.

Let \(\mu(x,z)\) denote the conditional mean of a response at covariate value \(x\) and other covariates \(z\). Consider a model with a log link and a linear predictor that is additive in \(x\):

$$ \log\{\mu(x,z)\}=\beta_0+\beta_x x+q(z), $$

Here \(q(z)\) collects the terms involving the other covariates, which are held fixed when comparing two values of \(x\). Because the inverse of the log link is the exponential function, the mean is

$$ \mu(x,z)=\exp\{\beta_0+\beta_x x+q(z)\}. $$
Definition: In this additive log-link model, \(\beta_x\) is the change in the linear predictor associated with a one-unit increase in \(x\), holding the other predictor terms fixed. The corresponding ratio of conditional means is \(\exp(\beta_x)\). The coefficient itself is on the log-mean scale; its exponential is on the mean-ratio scale.

The model requires a positive conditional mean wherever the log link is used, since \(\log(\mu)\) is defined only for \(\mu>0\). The response itself need not be positive in every observation; the condition here concerns its modeled mean.

Deriving the One-Unit Ratio

Compare two cases with the same \(z\), one at \(x\) and one at \(x+1\). The linear predictor increases by \(\beta_x\). Exponentiating both predictors gives the two means, and their ratio follows by cancellation.

Theorem: Suppose \(\mu(x,z)>0\) and \(\log\{\mu(x,z)\}=\beta_0+\beta_xx+q(z)\), with the same \(q(z)\) in both cases being compared. Then
$$ \frac{\mu(x+1,z)}{\mu(x,z)}=\exp(\beta_x). $$

Proof. By the assumed model,

$$ \begin{aligned} \mu(x+1,z) &=\exp\{\beta_0+\beta_x(x+1)+q(z)\}\\ &=\exp\{\beta_0+\beta_xx+q(z)\}\exp(\beta_x)\\ &=\mu(x,z)\exp(\beta_x). \end{aligned} $$

Since \(\mu(x,z)>0\), division by \(\mu(x,z)\) is valid, and gives the stated ratio. \(\square\)

The ratio does not depend on the starting value \(x\) or on the other covariates \(z\), provided the predictor change really is \(\beta_x\). If \(\beta_x=0\), the ratio is 1 and the modeled mean is unchanged. A positive coefficient gives a ratio greater than 1; a negative coefficient gives a ratio between 0 and 1.

The Ratio Is Not an Additive Difference

A ratio compares two means multiplicatively. To obtain their additive difference, multiply the ratio by the starting mean and subtract that starting mean. This yields a difference that generally varies with the starting mean.

Result: Under the assumptions above, the additive change for a one-unit increase is
$$ \mu(x+1,z)-\mu(x,z) =\mu(x,z)\{\exp(\beta_x)-1\}. $$

Derivation. The ratio result gives \(\mu(x+1,z)=\mu(x,z)\exp(\beta_x)\). Subtract \(\mu(x,z)\) from both sides:

$$ \begin{aligned} \mu(x+1,z)-\mu(x,z) &=\mu(x,z)\exp(\beta_x)-\mu(x,z)\\ &=\mu(x,z)\{\exp(\beta_x)-1\}. \end{aligned} $$

For fixed \(\beta_x\), the factor \(\exp(\beta_x)-1\) is fixed, but the product also contains the starting mean. Thus, unless \(\beta_x=0\), the additive change is not a single constant across different starting means. In contrast, the ratio \(\exp(\beta_x)\) stays the same. \(\square\)

The exact relative change is \(\exp(\beta_x)-1\), so the exact percentage change is \(100\{\exp(\beta_x)-1\}\%\). For a small coefficient, \(\exp(\beta_x)-1\) is approximately \(\beta_x\), making \(100\beta_x\%\) a useful approximation. It is not the exact percentage change in general.

Worked Example: A Positive Coefficient and Two Effect Scales

Suppose the conditional mean of a count is modeled by

$$ \log\{\mu(x)\}=\log(10)+0.25x. $$

At \(x=0\), the mean is \(\exp\{\log(10)\}=10\). Increasing \(x\) by one changes the linear predictor by \(0.25\), so the mean ratio is

$$ \exp(0.25)=1.2840254\ldots. $$

Thus, the mean at \(x=1\) is \(10\exp(0.25)=12.840254\ldots\), approximately \(12.84\). The exact additive change from \(x=0\) to \(x=1\) is

$$ 12.840254\ldots-10=2.840254\ldots, $$

approximately \(2.84\). The ratio \(1.2840\ldots\) corresponds to a \(28.40\%\) increase. The ratio is not an increase of 1.284 mean units; the additive increase is about 2.84 units because the starting mean is 10.

Worked Example: Checking the Starting Mean Matters

Consider the model

$$ \log\{\mu(x)\}=\log(12)+0.7+0.6x. $$

Compare \(x=0\) and \(x=1\). The linear predictor changes from \(\log(12)+0.7\) to \(\log(12)+1.3\), so the one-unit mean ratio is \(\exp(0.6)=1.8221188\ldots\). The means are

$$ \begin{aligned} \mu(0)&=12\exp(0.7)=24.165032\ldots,\\ \mu(1)&=12\exp(1.3)=44.031560\ldots. \end{aligned} $$

In particular, \(12\exp(1.3)\) rounds to \(44.03\). The additive difference is

$$ 44.031560\ldots-24.165032\ldots =19.866528\ldots, $$

which rounds to \(19.87\). The same ratio can therefore accompany an additive difference of \(19.87\) at this starting mean; it does not mean the mean rises by \(0.6\) or by a fixed number of units.

Worked Example: A Negative Coefficient Over Several Units

Suppose \(\log\{\mu(x)\}=\log(50)-0.08x\), and compare \(x\) with \(x+3\). The linear predictor changes by \(3(-0.08)=-0.24\), so the mean ratio is

$$ \frac{\mu(x+3)}{\mu(x)}=\exp(-0.24)=0.7866279\ldots. $$

The mean at \(x+3\) is about \(78.66\%\) of the mean at \(x\), a decrease of about \(21.34\%\). For a numerical check, take \(x=0\), so \(\mu(0)=50\). Then

$$ \begin{aligned} \mu(3)&=50\exp(-0.24)=39.331393\ldots,\\ \mu(3)-\mu(0)&=39.331393\ldots-50=-10.668607\ldots. \end{aligned} $$

The additive change is approximately \(-10.67\) mean units. The negative sign indicates a decrease; it is consistent with a ratio below 1.

Reading Coefficients Carefully

A log-link coefficient is easiest to interpret by moving through three steps: identify the covariate change, exponentiate the corresponding change in the linear predictor, and state the result as a ratio of means in context. For a one-unit increase in a covariate whose coefficient is \(\beta_x\), that ratio is \(\exp(\beta_x)\). For a change of \(\Delta\) units in the additive model above, it is \(\exp(\beta_x\Delta)\).

A coefficient is tied to the units in which its covariate is recorded. If \(x\) is measured in years, its coefficient describes a one-year increase; if it is measured in months, the coefficient describes a one-month increase. Always state the unit of the comparison. Also distinguish the ratio from its percentage translation: a ratio of 1.2 means the mean is 1.2 times as large, or 20% higher, not 120% higher.

The simple interpretation assumes that increasing \(x\) changes the linear predictor by exactly \(\beta_x\). If the model includes an interaction involving \(x\), the predictor change can depend on the values of the other covariates. In that case, calculate the actual difference between the two linear predictors and exponentiate it; the coefficient on \(x\) alone need not be the ratio for every covariate setting.

Common Mistake

Wrong reasoning: “The coefficient is \(0.25\), so a one-unit increase in \(x\) adds \(0.25\) to the mean.” This treats the coefficient as if the link were the identity link.

Correction: With a log link, a one-unit increase adds \(0.25\) to the log mean. On the mean scale it multiplies the mean by \(\exp(0.25)\), which is about \(1.284\). The corresponding additive change is the starting mean multiplied by \(\exp(0.25)-1\), so it depends on that starting mean.

Key takeaway: Under an additive linear predictor and a log link, a one-unit increase in \(x\) multiplies the conditional mean by \(\exp(\beta_x)\). Its additive effect is \(\mu(x,z)\{\exp(\beta_x)-1\}\), not \(\beta_x\).

Check Your Understanding

For each question, distinguish the change on the mean-ratio scale from the change in mean units.

  1. In a log-link model, a covariate has coefficient \(0.4\). What is the one-unit mean ratio, and what is the exact percentage change?
  2. If the starting mean is 8 and the one-unit mean ratio is 1.5, what is the additive change in the mean?
  3. A coefficient is \(-0.1\). Is the one-unit mean ratio above or below 1, and does the mean rise or fall?
  4. For a two-unit increase when the coefficient is \(0.2\), what is the mean ratio under an additive linear predictor?
  5. Why can the same log-link coefficient give different additive changes at two different starting means?
Clinical Biostats