Two Sources of Deviation, Two Places in the Model
A measured concentration can differ from the population prediction for two conceptually different reasons. The subject may have a clearance or volume that differs from the population-typical value, changing that subject’s predicted concentration profile. Or, even after using the subject-specific parameter, a particular measured concentration may lie above or below its model prediction. The first is between-subject parameter variability; the second is residual error.
The distinction is made by locating each source in the hierarchical model. A subject-level random effect changes an individual parameter and is shared across that subject’s observations. A residual error is attached to an observation, so a new observation can have a different residual even for the same subject and the same underlying parameter.
For this simple version, assume \(\eta_i\) has mean zero and variance \(\omega^2\), with independent values across subjects. Assume residuals have mean zero and variance \(\sigma^2\), are independent across observations, and are independent of the subject effects. A common illustrative specification is \(\eta_i\sim N(0,\omega^2)\) and \(\epsilon_{ij}\sim N(0,\sigma^2)\). The normality assumptions are useful for some likelihood calculations, but the conceptual distinction does not depend on normal distributions: it depends on where each term enters the model.
In the exponential parameter model, \(\theta_i\) is positive when \(\theta>0\), and \(\eta_i=0\) gives \(\theta_i=\theta\). The subject effect acts on the parameter scale through the exponential transformation. By contrast, additive \(\epsilon_{ij}\) acts on the observation scale in the equation above. These variances therefore refer to different levels and may have different units; they should not be treated as interchangeable measures of variability.
Worked Examples: Following Each Effect Through the Equations
Worked Example: A Random Effect Changes Clearance
Suppose a hypothetical one-compartment intravenous bolus model has dose \(100\ \mathrm{mg}\), typical clearance \(\theta=5\ \mathrm{L/h}\), and volume \(V=50\ \mathrm{L}\). The concentration prediction at time \(t\) is \(f(t,CL)=\frac{\mathrm{Dose}}{V}\exp(-CL\,t/V)\). For one hypothetical subject, let the clearance random effect be \(\eta_i=\ln(1.2)\approx0.1823\), and first set residual error to zero to isolate its role.
The individual clearance is \(CL_i=5\exp(0.1823)\approx5(1.2)=6\ \mathrm{L/h}\). At \(t=5\ \mathrm{h}\), that subject’s prediction is
The effect of \(\eta_i\) is not a one-time addition to the concentration at \(5\ \mathrm{h}\). It changes clearance, and that clearance is used to generate every prediction for this subject. With the same dose and volume, the population-typical clearance of \(5\ \mathrm{L/h}\) would instead give \(2\exp(-0.5)\approx1.213\ \mathrm{mg/L}\) at \(5\ \mathrm{h}\). The difference between those model predictions reflects the changed parameter, not a residual error.
Worked Example: Calculating an Observation Residual
Continue with the hypothetical subject above. Suppose the measured concentration at \(5\ \mathrm{h}\) is \(1.197\ \mathrm{mg/L}\). The subject-specific prediction remains \(2\exp(-0.6)\ \mathrm{mg/L}\). Under the additive observation model, the residual is the observed value minus that prediction:
This observation is about \(0.0994\ \mathrm{mg/L}\) above the prediction calculated with the subject’s clearance. That positive deviation is an observation-level residual in this model. It does not, by itself, establish that the subject’s clearance should be changed: the clearance effect has already been used to calculate the prediction. Other observations from the same subject would use the same \(CL_i\), but would have their own residual terms.
Worked Example: Separating the Terms in a Repeated-Measurement Model
Consider a deliberately simple hypothetical model for repeated measurements of a response in arbitrary units: \(y_{ij}=\theta+\eta_i+\epsilon_{ij}\). Let the population value be \(\theta=10\) units, and suppose subject A has \(\eta_A=0.5\) units. The model prediction for every observation from subject A is \(10+0.5=10.5\) units. Suppose two measurements are \(10.7\) and \(10.3\) units.
For the first measurement, \(\epsilon_{A1}=10.7-10.5=0.2\) units. For the second, \(\epsilon_{A2}=10.3-10.5=-0.2\) units. The subject effect, \(0.5\) units, is unchanged across the pair; the residuals differ by observation. The difference between the two measurements is \(10.7-10.3=0.4\) units, and the shared parameter contribution cancels:
The cancellation here follows from the simple model’s constant response contribution. In a nonlinear model, the raw difference between concentrations at different times generally does not cancel the parameter effect, because the structural predictions depend on time and on the subject-specific parameter. The key principle still holds: calculate each prediction using the same subject effect, then distinguish each observation’s residual from the parameter’s influence on the prediction.
Why Repeated Observations Help
The equation itself gives a useful way to understand the distinction. Conditional on a subject’s random effect, the model prediction is \(f(t_{ij},\theta_i)\). If residual errors have conditional mean zero, then
Thus, repeated observations from a subject inform the pattern predicted by that subject’s parameter, while individual deviations around the predictions are assigned to residual error under the model. A subject effect is shared across those observations; residual errors are not. This is why the number and timing of observations can matter: with very little information per subject, the data may not clearly distinguish a subject-specific parameter shift from observation noise.
For the simple repeated-measurement model \(y_{ij}=\theta+\eta_i+\epsilon_{ij}\), suppose in addition that \(\eta_i\) and \(\epsilon_{ij}\) are independent, mean zero, and have variances \(\omega^2\) and \(\sigma^2\). The variance of one observation across subjects and observations is
The equality follows because independent random variables have zero covariance, so \(\operatorname{Var}(\eta_i+\epsilon_{ij})=\operatorname{Var}(\eta_i)+\operatorname{Var}(\epsilon_{ij})\). This decomposition is for the stated additive model and assumptions; it is not a general recipe to add variance estimates from different model scales. In a nonlinear model, the relationship between parameter variation and observation variation depends on the structural function \(f\).
Assumptions, Diagnostics, and Common Confusions
The distinction is useful only when the model’s assumptions are plausible. In the simple specification, the subject effect is stable over the observations being modeled, residuals have conditional mean zero, and the residual-error form and dependence assumptions are adequate. For an additive residual model, errors are measured in the same units as \(y_{ij}\). Other residual specifications, such as proportional error, define the observation-level deviation differently; they do not turn an observation error into a subject parameter effect.
When reviewing a fitted model, ask whether deviations show a persistent subject-level pattern or are largely observation-specific. Compare observations with predictions that use the subject-specific parameter, and inspect residuals against time and predicted values. Repeated residuals of similar sign or a systematic time pattern can suggest that the structural model, covariate model, or residual specification is inadequate. Such a pattern is a reason to investigate, not proof that a particular random effect must be added. Conversely, a model that assigns nearly all discrepancies to residual error may fail to represent real differences in subject parameters.
A common mistake is to treat any measured value above the population-typical prediction as a positive subject random effect. That reasoning skips the distinction between the two levels. The correct sequence is to determine the subject parameter from the parameter model, calculate the structural prediction using that parameter, and then define the observation residual as observed minus predicted. A value can be above the population prediction because the subject parameter differs, because the observation residual is positive, or because both contribute.
Another limitation is that an estimated residual is not automatically a direct measurement of a physical error source. It is the discrepancy left after applying the chosen model. If the structural model omits a relevant process, the residual may contain systematic model misspecification as well as unexplained observation variation. Likewise, a fitted random-effect distribution is a model for population heterogeneity, not a guarantee that every individual parameter is known precisely.
Comparing the Two Terms
| Feature | Subject-level parameter effect | Residual error |
|---|---|---|
| Where it enters | Parameter equation, such as \(\theta_i=\theta\exp(\eta_i)\) | Observation equation, such as \(y_{ij}=f(t_{ij},\theta_i)+\epsilon_{ij}\) |
| What it changes | The individual parameter used to form predictions | A particular observation relative to its prediction |
| Shared across observations? | Yes, for the subject in the stated model | No; each observation has its own residual term |
| Typical units | Units of the random effect depend on parameterization; in a log effect, \(\eta_i\) is dimensionless | Units of the outcome for additive residual error |
These are not competing explanations from which one must always choose only one. A model may include both, as in the equations above. The distinction is instead about how each source is represented and what pattern it is intended to explain.
Check Your Understanding
Answer each question using the model levels and assumptions stated in the tutorial. Brief solutions follow the questions.
- In \(y_{ij}=f(t_{ij},\theta\exp(\eta_i))+\epsilon_{ij}\), which term is shared across subject \(i\)’s observations, and which can vary from one observation to the next?
- A hypothetical subject has typical clearance \(4\ \mathrm{L/h}\) and \(\eta_i=\ln(1.5)\). What is the individual clearance?
- A model predicts \(2.4\ \mathrm{mg/L}\) for an observation, and the hypothetical measured value is \(2.1\ \mathrm{mg/L}\). Under an additive residual model, calculate the residual and interpret its sign.
- In the simple model \(y_{ij}=\theta+\eta_i+\epsilon_{ij}\), why does subtracting two observations from the same subject remove \(\theta\) and \(\eta_i\)?
Solutions. (1) \(\eta_i\) is shared in the subject’s parameter equation; \(\epsilon_{ij}\) is observation-specific. (2) \(4\exp(\ln(1.5))=4(1.5)=6\ \mathrm{L/h}\). (3) The residual is \(2.1-2.4=-0.3\ \mathrm{mg/L}\), so the observation is \(0.3\ \mathrm{mg/L}\) below its prediction. (4) Both observations contain the same \(\theta+\eta_i\), so subtraction gives \((\theta+\eta_i+\epsilon_{i1})-(\theta+\eta_i+\epsilon_{i2})=\epsilon_{i1}-\epsilon_{i2}\).