Tutorials › Generalized Linear Mixed Models (GLMM) › Interpreting Conditional Coefficients

GLMM Versus GEE · Tutorial 116 of 698

Interpreting Conditional Coefficients

Interpret fixed-effect coefficients on the conditional scale and distinguish cluster-conditional associations from population-averaged claims.

Intermediate 12 min read

What You'll Learn

  • State what a GLMM fixed-effect coefficient conditions on.
  • Convert logistic-model coefficients into conditional odds ratios.
  • Convert log-link count-model coefficients into conditional mean ratios.
  • Interpret covariate contrasts with interactions and reference values.
  • Distinguish a within-cluster contrast from a contrast between clusters.
  • Recognize when conditional interpretations are not supported by the fitted model.

What a Conditional Coefficient Says

In clustered data, observations from the same person, clinic, school, or other group may be related. A generalized linear mixed model (GLMM) represents this structure by including cluster-specific random effects. Its fixed-effect coefficients describe how the response mean changes with a predictor conditional on the random effects. That qualification is essential: a conditional association is not automatically the association obtained after averaging over the population distribution of clusters.

This tutorial focuses on interpreting those fixed effects, not on deriving population-averaged effects. The key practical question is: when comparing two predictor values, what is held constant? For a conditional comparison, the covariate values other than the one of interest and the cluster’s random effects are held fixed. If the predictor varies within a cluster, this can describe a within-cluster contrast. If it is a cluster-level predictor, the comparison is between clusters at the same value of the random effect; it is not a literal change within one cluster.

Definition: A conditional fixed-effect coefficient is a coefficient in the GLMM’s linear predictor that describes an association between a predictor and the conditional response mean, given the random effects and the other modeled covariates. Its interpretation depends on the link function, the response distribution, the covariate coding, and any interactions in the model.

Model Setup and Assumptions

Let \(Y_{ij}\) be the response for observation \(i\) in cluster \(j\), \(x_{ij}\) the modeled covariates, and \(b_j\) the cluster’s random effects. A GLMM specifies a conditional response distribution and a conditional mean model:

$$ Y_{ij}\mid b_j \sim \text{a specified response distribution},\qquad g\{E(Y_{ij}\mid b_j,x_{ij})\}=x_{ij}^{\mathsf T}\beta+z_{ij}^{\mathsf T}b_j. $$

Here \(g\) is the link function, \(\beta\) is the vector of fixed effects, and \(z_{ij}\) specifies how the random effects enter the model. A common assumption is that the cluster random effects follow a mean-zero multivariate normal distribution with covariance matrix \(G\), independent across clusters. The response distribution is specified conditional on the random effects; observations are often assumed conditionally independent given those effects and the covariates. The response family, link, random-effect structure, and independence assumptions must be appropriate for the application.

A fixed coefficient \(\beta_k\) is the change in the conditional linear predictor for a one-unit increase in \(x_k\), with other terms held fixed, when no random slope for \(x_k\) is included. If the model includes a random slope for \(x_k\), the cluster-specific slope is instead \(\beta_k+b_{jk}\). Thus, a fixed coefficient in a random-slope model describes the fixed component of the slope, while individual clusters may have different conditional slopes.

Binary Outcomes: Conditional Odds Ratios

For a binary outcome, a common GLMM uses the logit link. Write \(p_{ij}(b_j)=P(Y_{ij}=1\mid b_j,x_{ij})\). With a random intercept \(b_{0j}\), one possible model is:

$$ Y_{ij}\mid b_{0j}\sim \operatorname{Bernoulli}\{p_{ij}(b_{0j})\},\qquad \operatorname{logit}\{p_{ij}(b_{0j})\}=\beta_0+\beta_1x_{ij}+b_{0j}. $$

Because the logit is the log odds, \(\beta_1\) is the difference in conditional log odds for a one-unit increase in \(x\), comparing observations with the same random intercept. Exponentiating gives the conditional odds ratio. With a random intercept alone, that odds ratio does not depend on the value of the intercept, though the conditional probabilities do.

Worked Example: A Binary Treatment Coefficient

Suppose, hypothetically, a logistic random-intercept GLMM models whether a patient improves (\(Y=1\)) at a follow-up visit. Treatment is coded \(x=1\) for the new treatment and \(x=0\) for control. The fitted conditional model is \(\operatorname{logit}(p_{ij})=-1.20-0.70x_{ij}+b_{0j}\), with a Bernoulli response and a normally distributed clinic random intercept.

Coefficient interpretation. At the same clinic random intercept, the treatment group has conditional log odds of improvement 0.70 lower than the control group. The conditional odds ratio is:

$$ \exp(\hat\beta_1)=\exp(-0.70)=0.4966. $$

Thus, conditional on the same clinic effect, the modeled odds of improvement under treatment are about 0.497 times the modeled odds under control, or about 50.3% lower. This is an odds comparison, not a probability difference and not a causal conclusion by itself.

For illustration, at \(b_{0j}=0\), the conditional control probability is \(\operatorname{logit}^{-1}(-1.20)=1/(1+\exp(1.20))\approx0.2315\). The treatment probability is \(\operatorname{logit}^{-1}(-1.90)=1/(1+\exp(1.90))\approx0.1301\). Their odds are \(0.2315/0.7685\approx0.3013\) and \(0.1301/0.8699\approx0.1496\); the odds ratio is approximately \(0.1496/0.3013=0.4965\), agreeing up to rounding. The probabilities shown apply only at the stated random-intercept value.

Count Outcomes: Conditional Mean Ratios

For a count response, a common choice is a Poisson GLMM with a log link. A log-link coefficient is additive on the conditional log-mean scale and multiplicative on the conditional mean scale. If an exposure offset is included, the mean is often interpreted as an expected count per specified exposure, such as visits per person-month.

$$ Y_{ij}\mid b_{0j}\sim\operatorname{Poisson}(\mu_{ij}),\qquad \log(\mu_{ij})=\log(e_{ij})+\beta_0+\beta_1x_{ij}+b_{0j}. $$

Here \(e_{ij}\) is the exposure amount. Holding exposure and the random intercept fixed, increasing \(x\) by one unit multiplies the conditional expected count by \(\exp(\beta_1)\). If the model has no exposure offset, the corresponding interpretation is a ratio of conditional expected counts for the modeled observation.

Worked Example: A Count Coefficient With an Exposure Offset

Suppose, hypothetically, a Poisson random-intercept GLMM models the number of urgent-care visits, with exposure measured in person-months. A predictor \(x\) is weekly activity time measured in units of 10 minutes. The fitted model is \(\log(\mu_{ij})=\log(e_{ij})+0.90+0.25x_{ij}+b_{0j}\). Assume the Poisson conditional response model and the random-intercept structure are the intended assumptions for this illustration.

For a 10-minute increase in weekly activity time, the conditional expected visit count per person-month is multiplied by:

$$ \exp(\hat\beta_1)=\exp(0.25)=1.284. $$

So, comparing observations with the same exposure and clinic random intercept, the model associates a 10-minute increase with an expected count about 1.284 times as large, or 28.4% higher. The coefficient does not say the count increases by 0.25 visits, nor does it establish that activity causes visits to increase.

For a numerical check, take \(e_{ij}=1\) person-month and \(b_{0j}=-0.20\). At \(x=0\), the conditional mean is \(\exp(0.90-0.20)=\exp(0.70)\approx2.014\) visits. At \(x=1\), it is \(\exp(0.90+0.25-0.20)=\exp(0.95)\approx2.586\) visits. The ratio is \(2.586/2.014\approx1.284\), as given by exponentiating the coefficient. The units are expected visits per person-month.

Interactions and the Meaning of a Coefficient

A coefficient cannot be interpreted in isolation from the rest of the linear predictor. With an interaction, the conditional association for one predictor depends on the value of another predictor. For example, consider a binary outcome with treatment \(T\), age \(A\) measured in five-year units, and a random intercept:

$$ \operatorname{logit}(p_{ij})=\beta_0+\beta_TT_{ij}+\beta_AA_{ij}+\beta_{TA}T_{ij}A_{ij}+b_{0j}. $$

At age value \(A\), the treatment contrast in conditional log odds is \(\beta_T+\beta_{TA}A\), so its conditional odds ratio is \(\exp(\beta_T+\beta_{TA}A)\). The coefficient \(\beta_T\) alone is the treatment contrast only at \(A=0\), the age reference defined by the coding.

Worked Example: A Treatment-by-Age Interaction

Suppose, hypothetically, the fitted model above has \(\hat\beta_T=-0.40\) and \(\hat\beta_{TA}=0.15\). Age is centered at 50 years, so \(A=0\) means age 50 and \(A=1\) means age 55. Assume the model includes a random intercept but no random treatment slope.

At age 50, the conditional treatment log-odds contrast is \(-0.40+0.15(0)=-0.40\), and the conditional odds ratio is \(\exp(-0.40)=0.6703\). At age 55, the contrast is \(-0.40+0.15(1)=-0.25\), giving \(\exp(-0.25)=0.7788\). Thus, the fitted treatment association is less negative at age 55 than at age 50, on the conditional log-odds scale. Both comparisons hold the random intercept and other modeled covariates fixed.

The interaction coefficient is not itself the treatment odds ratio at every age. It describes how the treatment log-odds contrast changes for a one-unit increase in \(A\), here a five-year increase. These are model-based associations; the interpretation does not establish that treatment or age causes the outcome.

Why the Conditioning Matters

For a nonlinear link, a conditional coefficient generally does not equal the coefficient from a model for the response mean averaged over the random-effect distribution. A GLMM coefficient describes the model at fixed random effects; averaging conditional probabilities or means across clusters is a different operation. In particular, a conditional odds ratio should not be reported as a population-averaged odds ratio merely because the random effects have mean zero. The odds ratio is formed on a nonlinear scale, and averaging does not generally preserve it.

The distinction between conditional and population-averaged mean models is central to choosing an estimand. Generalized estimating equations (GEE) are a main alternative when the target is a population-averaged mean association. A GLMM is useful when cluster-specific conditional associations and a model for cluster heterogeneity are relevant. Neither approach is automatically preferable: the choice depends on the scientific question and the assumptions each method requires.

Also distinguish conditioning on cluster effects from a claim that a predictor varies within clusters. If a predictor changes over time within a person, a conditional comparison may correspond to comparing values for that person while holding their random effect fixed. If a predictor is constant within each clinic, it cannot represent an observed within-clinic change. The phrase “conditional on random effects” does not turn a between-clinic contrast into a within-clinic one.

Diagnostics, Limitations, and Common Pitfalls

Interpretation depends on a defensible model. Check that the response family and link are plausible, that the random-effect structure reflects the intended sources of clustering, and that the model fits without convergence or numerical warnings. For count data, compare the observed variation with what the chosen response distribution can accommodate; for binary data, check whether sparse outcomes or separation may be destabilizing estimates. Examine whether residual patterns, influential clusters, or poorly supported random-effect estimates suggest model misspecification. A random-intercept model may be inadequate if cluster-specific predictor associations vary materially and a random slope is scientifically and statistically supportable.

The usual coefficient interpretation is conditional on the specified model and its assumptions. It does not guarantee a causal effect, and it does not imply that every cluster has exactly the same response probability or mean. With random slopes, cluster-specific associations vary. With a nonlinear link, transforming a fixed coefficient gives the conditional multiplicative contrast on the appropriate scale, not a constant probability difference.

  • Pitfall: treating a logit coefficient as a probability change. A coefficient of \(-0.70\) is a change in conditional log odds; \(\exp(-0.70)\) is a conditional odds ratio. Neither is a 70-percentage-point decrease in probability.
  • Pitfall: treating a log-link coefficient as an additive count change. A coefficient of \(0.25\) implies a conditional mean ratio of \(\exp(0.25)\), not an increase of 0.25 events.
  • Pitfall: calling every conditional contrast “within-cluster.” That label requires a predictor that varies within clusters and a contrast that actually compares its values within a cluster.
  • Pitfall: claiming a population-average effect from a conditional coefficient. The GLMM coefficient is conditional on the random effects; averaging over clusters can change the result, especially with nonlinear links.
Key takeaway: Interpret a GLMM fixed effect on the scale of its link, then transform it if useful: exponentiate logistic coefficients for conditional odds ratios and log-link coefficients for conditional mean ratios. State what is held fixed, name the comparison and units, and avoid converting a conditional association into a population-averaged or causal claim.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions.

  1. A logistic random-intercept model has a treatment coefficient of \(0.30\). What is the conditional odds ratio, and what does it compare?
  2. A log-link count model has a coefficient of \(-0.10\) for a predictor measured in hours. Interpret the coefficient for a two-hour increase.
  3. A predictor is constant within each clinic. Can its coefficient be described as an observed within-clinic change? Explain.
  4. A logistic model includes treatment, age, and their interaction. Which contrast does the treatment main-effect coefficient represent?

Solutions. (1) The conditional odds ratio is \(\exp(0.30)=1.350\). At the same random intercept and other covariate values, the modeled odds for treatment are 1.350 times the odds for control. This is an odds ratio, not a probability ratio. (2) A two-hour increase changes the conditional log mean by \(2(-0.10)=-0.20\), so the conditional mean ratio is \(\exp(-0.20)=0.8187\). The expected count is about 18.1% lower for the two-hour increase, at equal exposure and random effects. (3) No. Since the predictor does not vary within a clinic, the observed data do not provide a within-clinic change contrast for it. Its conditional coefficient compares clinics differing in that predictor, holding their modeled random effects and other covariates fixed. (4) The treatment main effect is the conditional treatment contrast at the age reference value, usually age zero under the model’s coding. With an interaction, the treatment contrast at another age includes the interaction contribution.

Clinical Biostats