Why the Identity Link Makes Slopes Direct
A random slope allows the association between a predictor and the conditional response mean to differ across clusters. With the identity link, the linear predictor is itself the conditional mean, so a slope has a direct response-scale interpretation: it describes the change in conditional mean response for a one-unit increase in the predictor. This tutorial develops that interpretation for fixed and cluster-specific slopes.
The interpretation is conditional: it holds for the specified cluster’s random effects and for the other covariates in the model held fixed. A slope describes a model-based association, not necessarily a causal effect. In particular, an identity-link slope is not an odds ratio or rate ratio; it is an additive change in the response mean.
Here, \(\beta_0\) is the fixed intercept and \(b_{0j}\) is cluster \(j\)'s deviation from it. The random intercept and slope are commonly modeled jointly as mean-zero random effects, such as \((b_{0j},b_{1j})^\mathsf{T}\sim N(\mathbf{0},\Sigma_b)\), independently across clusters. The mean-zero assumption makes \(\beta_1\) the mean of the cluster-specific slopes in the random-effects population. A particular cluster's slope can be above or below that mean.
The conditional response distribution must also be appropriate for the outcome, and the identity-link conditional mean must be valid over the predictor range being used. For a Gaussian response model, a common specification is \(Y_{ij}\mid b_{0j},b_{1j},x_{ij}\sim N(\mu_{ij},\sigma^2)\), with observations conditionally independent given the random effects and covariates. Other response distributions require their own assumptions. The linear mean can produce values outside a response's allowable range, so an identity link is not automatically suitable for every outcome.
From the Model to a Change in Mean
At a fixed value of the random effects, the model can be written as a line in \(x_{ij}\). Its intercept for cluster \(j\) is \(\beta_0+b_{0j}\), and its slope is \(\beta_1+b_{1j}\). To see why the slope is a response-scale change, compare the conditional means at two predictor values \(x_a\) and \(x_b\), keeping the cluster and all other modeled quantities unchanged.
The intercept terms cancel. For a one-unit increase, \(x_b-x_a=1\), so the change in conditional mean is exactly \(\beta_1+b_{1j}\). For a change of \(k\) predictor units, it is \(k(\beta_1+b_{1j})\). The fixed slope \(\beta_1\) gives the corresponding one-unit change for the fixed-effects line, which is the mean cluster slope when the random slopes have mean zero.
The units matter. If \(Y\) is measured in millimetres and \(x\) in years, the slope is millimetres per year. A negative slope means the conditional mean decreases as \(x\) increases; it does not mean the response itself must be negative. The intercept is the conditional mean at \(x=0\), so its substantive interpretation depends on whether zero is meaningful and within a useful range of the predictor.
Worked Example: A Cluster-Specific Increase in Mean Response
Suppose, hypothetically, a continuous response is measured in millimetres and \(x\) is age in years. The fitted model has \(\beta_0=12\) millimetres and \(\beta_1=1.8\) millimetres per year. For a selected cluster, suppose the random effects are \(b_{0j}=-2\) millimetres and \(b_{1j}=0.7\) millimetres per year. Find its slope and the change in conditional mean from age 4 to age 7.
The cluster-specific slope is $$ \beta_1+b_{1j}=1.8+0.7=2.5\text{ millimetres per year}. $$ Thus, within this cluster, each additional year is associated with a 2.5-millimetre increase in conditional mean response under the model.
The three-year change is $$ (2.5\text{ millimetres per year})(7-4\text{ years})=7.5\text{ millimetres}. $$ Checking directly, the cluster's conditional mean at age 4 is \(12-2+(1.8+0.7)(4)=20\) millimetres. At age 7 it is \(12-2+(1.8+0.7)(7)=27.5\) millimetres. Their difference is \(27.5-20=7.5\) millimetres, as required. These hypothetical calculations assume the specified identity-link mean is appropriate throughout ages 4 to 7.
Reading Fixed and Cluster-Specific Slopes
The fixed slope and cluster-specific slope answer related but distinct questions. The fixed slope describes the change associated with one predictor unit on the fixed-effects line. The cluster-specific slope adds that cluster's random deviation. It is therefore incorrect to interpret \(\beta_1\) as the slope for every cluster unless the random slope deviation for each cluster is zero. Conversely, a cluster-specific slope is not a separate fixed coefficient: it combines the common fixed slope with the cluster's deviation.
For example, if \(\beta_1=-0.40\) score points per week and a cluster has \(b_{1j}=0.15\) score points per week, then that cluster's slope is \(-0.25\) score points per week. The positive random deviation makes the slope less negative; it does not make it positive. Always add the signed quantities, retaining their units.
Worked Example: A Random Deviation Changes the Direction's Strength
Consider a hypothetical model for a continuous symptom score, in points, measured over weeks. Let the fixed slope be \(\beta_1=-0.40\) points per week. For one cluster, let \(b_{1j}=0.15\) points per week. The fixed intercept is 18 points and the cluster's intercept deviation is \(-1\) point. Calculate the cluster-specific slope and its predicted conditional means at weeks 2 and 6.
First add the fixed and random slope: $$ \beta_1+b_{1j}=-0.40+0.15=-0.25\text{ points per week}. $$ The conditional mean decreases by 0.25 points for each additional week in this cluster. The cluster-specific intercept is \(18-1=17\) points, so the mean function is \(\mu_j(x)=17-0.25x\).
At week 2, \(\mu_j(2)=17-0.25(2)=16.5\) points. At week 6, \(\mu_j(6)=17-0.25(6)=15.5\) points. The change is \(15.5-16.5=-1.0\) point over four weeks, also given by \((-0.25)(6-2)=-1.0\) point. These are conditional mean values, not claims that every observed score follows the line exactly. The calculation presumes that weeks 2 through 6 are in the range where a linear conditional mean is reasonable.
When random effects have mean zero and their distribution does not depend on the predictor, averaging the identity-link conditional mean over the random effects gives the fixed-effects mean: $$ E_{b}\{\mu_{ij}\mid x_{ij}\}=\beta_0+\beta_1x_{ij}. $$ This follows because \(E(b_{0j})=E(b_{1j})=0\), so \(E(b_{0j}+b_{1j}x_{ij})=0\) at a fixed \(x_{ij}\). Thus the fixed slope is also the population-average slope under these conditions. This equality concerns the mean response; it does not imply that every cluster has that slope or that the conditional response distribution is the same across clusters.
Worked Example: Comparing a Cluster Slope With the Fixed Slope
Suppose hypothetically that a laboratory measurement is modeled in units of concentration, with \(x\) measured in hours. The fixed slope is \(\beta_1=2.4\) concentration units per hour. A selected cluster has a random slope deviation \(b_{1j}=-1.1\) concentration units per hour. Calculate both slopes and the conditional mean change from hour 3 to hour 8.
The fixed-effects line increases by 2.4 concentration units for each additional hour. The selected cluster's slope is $$ \beta_1+b_{1j}=2.4+(-1.1)=1.3\text{ concentration units per hour}. $$ The deviation reduces the rate of increase relative to the fixed slope, but this cluster's slope remains positive.
Across five hours, the cluster's conditional mean change is $$ (1.3\text{ concentration units per hour})(8-3\text{ hours})=6.5\text{ concentration units}. $$ For comparison, the fixed-effects line changes by \(2.4(8-3)=12.0\) concentration units over the same interval. The difference between the changes is \(6.5-12.0=-5.5\) concentration units, which also equals \(b_{1j}(8-3)=(-1.1)(5)=-5.5\). This comparison is a model-based description, not evidence by itself that the predictor causes the response to change.
Assumptions, Diagnostics, and Common Pitfalls
The slope calculations are algebraic consequences of the identity-link mean model, but using them as scientific descriptions depends on the model being credible. In particular, the conditional mean should be approximately linear in the predictor over the range interpreted, the random-effects specification should represent relevant cluster differences, and the response distribution and dependence assumptions should be suitable for the data. If the model includes additional fixed or random terms, the interpretation must hold those terms at specified values; an omitted interaction, for example, can make a single slope an inadequate summary.
Useful checks include plotting observed responses and fitted conditional means against the predictor by cluster, checking whether the relationship is systematically curved, and examining residuals for patterns or changing spread. Compare observed cluster trajectories with model-based trajectories where appropriate. A pattern of curvature, substantial systematic departures, or implausible predicted means suggests the linear identity-link mean may not describe the data well. Check also whether conclusions rely on extrapolation beyond observed predictor values.
The identity link imposes no automatic restriction that fitted means be positive or lie within a bounded scale. If the outcome is nonnegative, binary, or otherwise constrained, a fitted conditional mean outside its valid range signals a serious problem for that use of the model. A random slope can make predictions especially problematic at extreme predictor values. Do not treat a plausible fitted mean within the observed range as proof that all assumptions hold; diagnostics and knowledge of the measurement scale both matter.
- Common mistake: treating the fixed slope as every cluster's slope. The incorrect reasoning is that \(\beta_1\) is the slope for all observations. The correction is to add the cluster's deviation: \(\beta_1+b_{1j}\).
- Common mistake: interpreting the slope as a multiplicative effect. The correction is that an identity-link slope is an additive change in conditional mean, in response units per predictor unit.
- Common mistake: ignoring the size of a predictor change. A slope is a one-unit change; for a \(k\)-unit increase, multiply it by \(k\), provided the linear mean remains appropriate across that interval.
- Common mistake: confusing fitted means with observed outcomes. A slope describes how the conditional mean changes. Individual observations can differ from that mean because of response variation.
Check Your Understanding
Answer each question, then compare your work with the solutions below.
- A model has a fixed slope of 3.2 units of response per day and a cluster slope deviation of \(-0.7\) units per day. What is that cluster's slope, and what is the conditional mean change over five days?
- For a selected cluster, the slope is \(-1.5\) milligrams per week. Interpret the change over a two-week increase in the predictor.
- Why does a random slope model not generally assign every cluster the fixed slope \(\beta_1\)?
- A fitted identity-link model gives a conditional mean of \(-0.4\) for an outcome that cannot be negative. What should an analyst conclude?
Solutions. 1. The cluster slope is \(3.2+(-0.7)=2.5\) response units per day. Over five days, the conditional mean increases by \(2.5(5)=12.5\) response units. 2. The conditional mean changes by \((-1.5)(2)=-3.0\) milligrams, a decrease of 3.0 milligrams over two weeks, if the linear mean is appropriate over that interval. 3. Each cluster's slope is \(\beta_1+b_{1j}\); the random deviation \(b_{1j}\) can differ across clusters. 4. The prediction violates the outcome's allowable range, so the identity-link mean model is unsuitable for that prediction and requires reassessment; the negative fitted mean is not a possible expected value for this outcome.