Tutorials › Pharmacokinetic-Pharmacodynamic (PK/PD) Modeling › Separating Covariate Effects From Random Effects

Population PK/PD Model Building · Tutorial 432 of 598

Separating Covariate Effects From Random Effects

Distinguish covariate-driven shifts in typical PD parameters from the residual between-subject heterogeneity represented by random effects.

Advanced 10 min read

What You'll Learn

  • Separate a covariate’s contribution to the conditional population mean from the random effect for an individual.
  • Interpret covariate coefficients and random-effect variances on additive and log scales.
  • Use the law of total variance to distinguish variation across covariate values from residual heterogeneity.
  • Assess what a change in estimated random-effect variance does—and does not—show.
  • Recognize assumptions, diagnostics, and common interpretation errors when both components are in a model.

Why Separate Covariates From Random Effects?

People with different covariate values can have systematically different typical PD parameters. Even among people with the same covariate values, however, the parameter may vary from one person to another. A population model represents these as distinct components: a covariate effect shifts the conditional population value, while a random effect represents remaining between-subject variation around that value.

This distinction matters for interpretation. A covariate coefficient describes how the model’s typical parameter changes with the covariate; it does not describe every individual’s change. A random-effect variance describes the model’s residual heterogeneity on a specified parameter scale; it is not itself a covariate effect. Both components can be present, and neither should be inferred solely from the other.

Definition: A covariate effect is a systematic relationship between a measured subject characteristic and a model parameter. A random effect, commonly written \(\eta_i\) for subject \(i\), is an individual-level deviation from the parameter value predicted by the population model. In a model with both components, the covariate determines the conditional population value and the random effect describes residual subject-to-subject deviation from it.

Model Components and Their Assumptions

Begin with an additive model for a positive or unrestricted parameter \(P_i\), with a centered covariate \(z_i\):

$$ P_i=\theta+\beta z_i+\eta_i,\qquad E(\eta_i\mid z_i)=0,\qquad \operatorname{Var}(\eta_i\mid z_i)=\omega^2. $$

Here, \(\theta\) is the population value at \(z_i=0\), \(\beta\) is the change in the conditional population mean for a one-unit increase in \(z_i\), and \(\omega^2\) is the conditional random-effect variance. The covariate’s units determine the units of \(\beta\); \(\theta\), \(\beta z_i\), and \(\eta_i\) must all have the units of \(P_i\). Under the stated conditional mean and variance assumptions, \(E(P_i\mid z_i)=\theta+\beta z_i\) and \(\operatorname{Var}(P_i\mid z_i)=\omega^2\).

The random effect is often assumed to follow a normal distribution, \(\eta_i\sim N(0,\omega^2)\), though the normality assumption is stronger than the mean and variance conditions above. In either case, the zero conditional mean is important: it makes the covariate term the systematic shift and the random effect a deviation around that shift. The model also assumes the specified covariate function is appropriate and that the random-effect distribution adequately represents residual subject differences. If random effects are systematically associated with a covariate in a way the model does not represent, the covariate and random-effect components may not be cleanly separated.

For a positive parameter, an exponential model is often more appropriate:

$$ \ln P_i=\ln\theta+\beta z_i+\eta_i,\qquad \eta_i\sim N(0,\omega^2). $$

Here \(\theta\) is the typical parameter at \(z_i=0\), and \(\exp(\beta)\) is the multiplicative change in the typical parameter for a one-unit increase in \(z_i\). The conditional median of \(P_i\) is \(\theta\exp(\beta z_i)\); because the random effect is normal on the log scale, the conditional arithmetic mean is \(\theta\exp(\beta z_i+\omega^2/2)\). Thus, “population mean” must be interpreted on the scale specified by the model: the covariate shifts the mean on the log scale, while the arithmetic mean on the original scale also depends on the random-effect variance.

Worked Example: Additive Covariate Shift and Residual Variation

Suppose a hypothetical PD model uses \(P_i=\theta+\beta z_i+\eta_i\), where \(P_i\) is a sensitivity parameter in concentration units, \(z_i\) is a centered covariate measured in standard-deviation units, and \(\eta_i\sim N(0,\omega^2)\). Let \(\theta=4.00\) concentration units, \(\beta=0.60\) concentration units per covariate unit, and \(\omega=0.80\) concentration units. Find the conditional population mean at \(z_i=1\), and the parameter value for an individual with \(\eta_i=-0.50\) at that covariate value.

The conditional population mean is \(\theta+\beta z_i\). Substituting gives \(4.00+(0.60)(1)=4.60\) concentration units. This is the model’s mean parameter value among subjects at \(z_i=1\), not a prediction that every such subject has that value.

For the specified individual, include the random effect: \(P_i=4.00+(0.60)(1)-0.50=4.10\) concentration units. The covariate shifts the conditional mean by \(0.60\) units, and this individual’s random effect shifts the value \(0.50\) units below that mean.

At any fixed \(z_i\), the conditional random-effect variance is \(\omega^2=(0.80)^2=0.64\) squared concentration units, so the conditional standard deviation is \(0.80\) concentration units. It describes the model’s residual spread among subjects with the same covariate value.

Why Covariate Variation and Random-Effect Variation Differ

The distinction can be made precise using the law of total variance. For the additive model, suppose the covariate \(Z\) varies across subjects, \(E(\eta\mid Z)=0\), and \(\operatorname{Var}(\eta\mid Z)=\omega^2\). Then the variance of \(P\) across the whole population includes both variation in the covariate-predicted mean and variation around that mean.

$$ \begin{aligned} \operatorname{Var}(P) &=E\{\operatorname{Var}(P\mid Z)\} +\operatorname{Var}\{E(P\mid Z)\}\\ &=E(\omega^2)+\operatorname{Var}(\theta+\beta Z)\\ &=\omega^2+\beta^2\operatorname{Var}(Z). \end{aligned} $$

The first term, \(\omega^2\), is the average within-covariate conditional variance. The second term is variation in the conditional mean as \(Z\) varies. This decomposition follows because, at a given \(Z\), the additive model has conditional variance \(\omega^2\), while its conditional mean is \(\theta+\beta Z\). It does not say that all population variation is random-effect variation, nor that adding a covariate must reduce the conditional variance by a particular amount.

In practice, random-effect variance estimates can change when a covariate is added. If the covariate captures a systematic pattern that was previously left in the unexplained subject variation, the estimated residual variance may decrease. But the estimate also depends on the data, model structure, and parameter scale. A decrease is evidence about the fitted model’s residual heterogeneity, not a direct or exact measure of the fraction of biological variation “explained.”

Worked Example: Separating Variation Across Covariate Values

Suppose the additive model has \(\beta=0.60\) concentration units per covariate unit and \(\omega=0.80\) concentration units. In a hypothetical population, the covariate has variance \(\operatorname{Var}(Z)=1.00\) squared covariate units. Calculate the total variance across subjects and identify its two components.

The residual conditional variance is \(\omega^2=(0.80)^2=0.64\) squared concentration units. Variation in the conditional mean is \(\beta^2\operatorname{Var}(Z)=(0.60)^2(1.00)=0.36\) squared concentration units.

Therefore, \(\operatorname{Var}(P)=0.64+0.36=1.00\) squared concentration units, and the total standard deviation is \(\sqrt{1.00}=1.00\) concentration unit. The \(0.36\) component arises because subjects have different covariate values; the \(0.64\) component is residual variance conditional on covariate value. If all subjects had the same \(Z\), the first component would be zero, but the model would still allow residual heterogeneity with variance \(0.64\).

Interpreting Random Effects on a Log Scale

For the exponential model, the covariate shifts the typical parameter multiplicatively, while \(\eta_i\) acts multiplicatively on the original scale through \(\exp(\eta_i)\). A fixed \(\omega^2\) means constant random-effect variance on the log scale, not constant variance in the original parameter units. In fact, under the lognormal model:

$$ \operatorname{Var}(P_i\mid z_i) = \{\theta\exp(\beta z_i)\}^2 \exp(\omega^2)\{\exp(\omega^2)-1\}. $$

Consequently, original-scale variance can be larger at covariate values with larger typical parameters, even when \(\omega^2\) is unchanged. A comparison of random-effect variances is meaningful only with attention to the scale and parameterization used.

Worked Example: Covariate Shift With a Lognormal Random Effect

Consider a hypothetical positive PD parameter in concentration units, with \(\theta=5.00\) units, \(\beta=0.18\) per covariate unit, and \(\omega^2=0.09\) on the log scale. At \(z_i=2\), calculate the typical parameter (the conditional median), the conditional arithmetic mean, and the value for a subject with \(\eta_i=0.10\).

The typical parameter is \(\theta\exp(\beta z_i)=5.00\exp(0.18\times2)=5.00\exp(0.36)\approx7.167\) units. The covariate has increased the typical parameter relative to \(z_i=0\); it has not specified the individual random deviation.

The conditional arithmetic mean is \(5.00\exp(0.36+0.09/2)=5.00\exp(0.405)\approx7.497\) units. It exceeds the conditional median because the distribution is lognormal.

For the individual with \(\eta_i=0.10\), \(P_i=5.00\exp(0.36+0.10)=5.00\exp(0.46)\approx7.920\) units. This individual’s value includes both the covariate shift and the individual random effect. The difference between 7.167 and 7.920 units is not a second covariate effect; it reflects the specified \(\eta_i\).

Reading Changes in Estimated Variance

When comparing a model without a covariate to one with it, first check that both models use the same parameter scale and the same random-effect structure. Then interpret the covariate coefficient on its stated scale and compare the estimated random-effect variances. For a variance estimate \(\omega^2\), the corresponding random-effect standard deviation is \(\omega=\sqrt{\omega^2}\), which is often easier to discuss in the parameter’s units (or log units).

For example, the variance might fall substantially while remaining positive. That indicates less estimated residual heterogeneity under the covariate model, not that subjects have become less variable in reality. Parameter uncertainty also matters: estimates can vary with sampling, and a numerical difference alone does not establish that the covariate is reliably associated with the parameter.

Worked Example: Quantifying a Change in Residual Heterogeneity

Suppose two hypothetical fits use the same additive PD parameter scale and the same random-effect structure. In the model without a covariate, the estimated random-effect variance is \(0.49\) squared units. In the model with a covariate, the estimate is \(0.25\) squared units, and the estimated covariate coefficient is \(0.40\) units per covariate unit. Calculate the variance reduction and compare the random-effect standard deviations.

The absolute variance reduction is \(0.49-0.25=0.24\) squared units. Relative to the first estimate, this is \(0.24/0.49\approx0.4898\), or about \(49.0\%\). The standard deviations are \(\sqrt{0.49}=0.70\) units without the covariate and \(\sqrt{0.25}=0.50\) units with it, a decrease of \(0.20\) units, or \(0.20/0.70\approx28.6\%\).

The covariate coefficient describes the fitted conditional mean shift: a one-unit covariate increase corresponds to a \(0.40\)-unit increase in the model’s population parameter. The variance comparison says the fitted residual spread is smaller in the covariate model. It does not show that exactly \(49.0\%\) of true between-subject biological variability has been explained, and it does not by itself establish the reliability of the coefficient.

Diagnostics, Alternatives, and Limitations

A sensible interpretation depends on whether the model can distinguish the systematic covariate pattern from subject-specific deviations. Examine whether the fitted conditional mean changes in the expected direction across covariate values and whether residual subject-level deviations remain centered around that mean. Review estimation uncertainty and whether the random-effect variance is stable under reasonable model fits. A variance estimate near zero, very large uncertainty, or unstable estimates can indicate that the data do not support precise separation of the components.

Common warning signs include a covariate coefficient that changes markedly across model specifications, a random-effect variance that changes dramatically without a clear model explanation, or systematic residual patterns across the covariate range. Such patterns can arise when the assumed covariate relationship is inadequate, when data are sparse, or when the chosen parameter scale is inappropriate. These signals call for investigation; they do not identify one cause automatically.

The main alternatives are not interchangeable interpretations. A model with random effects but no covariate allows unexplained subject heterogeneity but does not represent a systematic mean shift with the measured covariate. A covariate-only model represents a conditional mean pattern but assumes no remaining random heterogeneity in that parameter. A model with both components allows a systematic shift and residual variation, but requires enough information to estimate both. The appropriate choice depends on the scientific model and available data, not merely on which fit produces a smaller variance estimate.

A common mistake is to say, “The random-effect variance fell by 49%, so the covariate explains 49% of between-subject variability.” This overstates what the comparison establishes. The calculation is a relative change in an estimated variance under two fitted models. It is not a direct causal or biological allocation of variation, and it does not account by itself for uncertainty or changes in model assumptions. Report the coefficient, its units and scale, the variance estimates on the same scale, and the limits of the comparison.

Key takeaway: The covariate term describes how the conditional population value changes; the random effect describes remaining subject-level deviation from that value. Interpret both on the model’s parameter scale, and treat a change in estimated random-effect variance as a model-dependent comparison rather than a percentage of variability definitively explained.

Check Your Understanding

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

  1. In \(P_i=\theta+\beta z_i+\eta_i\), what does \(\beta\) describe, and what does \(\omega^2\) describe?
  2. If \(E(\eta_i\mid z_i)=0\), \(\theta=3.0\) units, \(\beta=0.5\) units per covariate unit, and \(z_i=2\), find the conditional mean. What is an individual’s value if \(\eta_i=-0.4\) units?
  3. In a lognormal model, why can the conditional arithmetic mean exceed the conditional median?
  4. A variance estimate decreases from \(0.36\) squared units to \(0.16\) squared units after adding a covariate. What is the relative variance reduction, and what conclusion should not be drawn from it?

Solutions. (1) \(\beta\) is the change in the conditional population mean for a one-unit increase in \(z_i\), in units of \(P_i\) per covariate unit. \(\omega^2\) is the conditional random-effect variance in squared units of \(P_i\). (2) The mean is \(3.0+(0.5)(2)=4.0\) units. Including the individual effect gives \(4.0-0.4=3.6\) units. (3) If \(\ln P_i\) is normal with variance \(\omega^2>0\), then the arithmetic mean is the median multiplied by \(\exp(\omega^2/2)>1\). (4) The relative reduction is \((0.36-0.16)/0.36=0.5556\), or \(55.6\%\). This is a difference between fitted variance estimates; it does not prove that the covariate explains exactly \(55.6\%\) of true biological variability.

Clinical Biostats