Tutorials › Population Pharmacokinetics › Why Eta Shrinkage Flattens Covariate Plots

Diagnostics: Goodness of Fit and Shrinkage · Tutorial 354 of 599

Why Eta Shrinkage Flattens Covariate Plots

Learn why shrinkage can make a real covariate effect look weaker in an empirical Bayes estimate plot, and how to interpret such plots cautiously.

Intermediate 10 min read

What You'll Learn

  • Derive attenuation of an EBE–covariate slope in a normal model.
  • Calculate how prior variance and measurement uncertainty affect the expected plotted slope.
  • Distinguish a weak EBE trend from evidence that a covariate has no effect.
  • Recognize how covariate-dependent information can make attenuation uneven.
  • Identify diagnostics and model-based alternatives to relying on an EBE plot alone.

Why a Covariate Trend Can Disappear

A plot of empirical Bayes estimates (EBEs) against a covariate is often used to look for a systematic relationship that the model has not explained. For example, if an EBE for a clearance random effect tends to increase with body size, that pattern may suggest that the population model has not captured a body-size relationship. But an EBE is not the subject’s random effect observed without error. It is an estimate informed both by that subject’s data and by the model’s population distribution. When the subject’s data provide limited information, the estimate is pulled toward the population value, often zero. This pull can flatten the plotted relationship.

The key implication is about interpretation: a weak or flat EBE–covariate trend does not, by itself, establish that the underlying covariate relationship is absent. The plot may reflect a genuinely weak relationship, substantial uncertainty in the individual estimates, or both. The simple normal model below isolates the mechanism and shows exactly when the slope is attenuated.

Definition: Let \(\eta_i\) denote a subject’s random effect, and let \(\hat{\eta}_i\) denote its empirical Bayes estimate under a fitted model. Eta shrinkage describes the tendency for the distribution of the \(\hat{\eta}_i\) values to be less variable than the distribution of the underlying \(\eta_i\) values, with estimates tending toward the model’s population value. If random effects are centered at zero, this is commonly described as shrinkage toward zero. A plot of \(\hat{\eta}_i\) against a covariate can therefore show a weaker trend than a plot of the true \(\eta_i\) values would.

A Normal-Model Derivation of Slope Attenuation

Consider a single random effect and a centered covariate \(x_i\). Suppose the true random effect has a linear covariate relationship:

$$ \eta_i = \gamma x_i + u_i,\qquad u_i \sim N(0,\omega^2). $$

Here \(\gamma\) is the true change in the mean random effect per one-unit increase in \(x_i\), and \(u_i\) is the remaining between-subject deviation. Now suppose the fitted model does not include this covariate relationship and instead uses a zero-centered prior, \(\eta_i \sim N(0,\omega^2)\). To represent the information in subject \(i\)’s concentration data, consider a simple estimate \(z_i\) satisfying

$$ z_i \mid \eta_i \sim N(\eta_i,s_i^2). $$

The quantity \(z_i\) is an idealized data-based estimate of the random effect, with uncertainty \(s_i^2\). Under these assumptions, the posterior distribution of \(\eta_i\) is normal. Its mean, which is also its mode, is a weighted average of the data-based estimate and the prior mean:

$$ \hat{\eta}_i = E(\eta_i\mid z_i) = \frac{\omega^2}{\omega^2+s_i^2}z_i = \lambda_i z_i, \qquad \lambda_i=\frac{\omega^2}{\omega^2+s_i^2}. $$

The weight \(\lambda_i\) lies between zero and one. A large \(s_i^2\) makes \(z_i\) less informative, reducing its weight and pulling the EBE more strongly toward zero. In this simplified setting, \(E(z_i\mid x_i)=\gamma x_i\), so the expected EBE at a given covariate value is

$$ E(\hat{\eta}_i\mid x_i)=\lambda_i\gamma x_i $$

when \(\lambda_i\) is constant across subjects. Thus, the expected EBE–covariate slope is \(\lambda\gamma\), not \(\gamma\). The reduction is not evidence that the true covariate effect has changed: it arises because the plotted estimates are pulled toward the prior center.

Key result: In the normal model with a zero-centered prior and constant information across subjects, the expected EBE–covariate slope equals the underlying slope multiplied by the reliability weight \(\lambda=\omega^2/(\omega^2+s^2)\). When \(0<\lambda<1\), the expected plotted slope is closer to zero. This is a result for the stated model, not a universal correction factor for every nonlinear mixed-effects model.

The derivation follows directly from normal updating. Multiplying the prior density by the likelihood gives a posterior kernel whose terms involving \(\eta_i\) are

$$ -\frac{1}{2} \left[ \frac{\eta_i^2}{\omega^2} + \frac{(z_i-\eta_i)^2}{s_i^2} \right]. $$

Collecting the quadratic and linear terms in \(\eta_i\), the posterior precision is \(1/\omega^2+1/s_i^2\), and the posterior mean is \((z_i/s_i^2)/(1/\omega^2+1/s_i^2)\). Multiplying numerator and denominator by \(\omega^2s_i^2\) yields \(\omega^2 z_i/(\omega^2+s_i^2)\), as above. This makes the source of the pull explicit: when the data-based estimate is uncertain, the prior contributes more to the posterior estimate.

Worked Example: Expected Slope Under Constant Shrinkage

Suppose, hypothetically, that a centered covariate \(x\) has a true random-effect relationship with slope \(\gamma=0.40\) per covariate unit. Let \(\omega=0.50\) and let the data-based estimate have standard error \(s=0.50\) for every subject. Find the expected EBE slope.

First calculate the variances and the reliability weight:

$$ \omega^2=0.50^2=0.25,\qquad s^2=0.50^2=0.25, \qquad \lambda=\frac{0.25}{0.25+0.25}=0.50. $$

The expected EBE slope is therefore

$$ \lambda\gamma=0.50(0.40)=0.20 $$

random-effect units per covariate unit. For example, at \(x=1\), the true conditional mean is \(0.40\), whereas the expected EBE is \(0.20\). At \(x=-1\), the corresponding values are \(-0.40\) and \(-0.20\). The expected plotted trend is half as steep as the underlying trend, even though the hypothetical covariate effect is nonzero.

From the Expected Trend to a Finite Plot

The derivation describes an expected relationship, not a promise that every finite sample will have a slope equal to \(\lambda\gamma\). The plotted EBEs also vary because of the residual deviations \(u_i\), the uncertainty in \(z_i\), the covariate values observed in the sample, and sampling variation in the fitted model. Consequently, one EBE plot can look nearly flat even when the expected slope is not zero. Conversely, sampling variation can produce a visible trend when the underlying relationship is weak or absent.

Worked Example: Calculating a Finite-Sample EBE Slope

Consider hypothetical data for five subjects. The centered covariate values are \(x=(-2,-1,0,1,2)\), and their data-based random-effect estimates are \(z=(-0.80,-0.20,0.10,0.50,1.00)\). Suppose the fitted model gives \(\omega=0.40\) and a common data-based standard error \(s=0.80\). Calculate the slope of the EBEs against \(x\).

The shrinkage weight is

$$ \lambda=\frac{0.40^2}{0.40^2+0.80^2} =\frac{0.16}{0.16+0.64} =0.20. $$

Multiplying each \(z_i\) by \(0.20\) gives EBEs \((-0.16,-0.04,0.02,0.10,0.20)\). Since the covariate values have mean zero, the least-squares slope is \(\sum_i x_i\hat{\eta}_i/\sum_i x_i^2\). The numerator is

$$ (-2)(-0.16)+(-1)(-0.04)+(0)(0.02)+(1)(0.10)+(2)(0.20) =0.32+0.04+0+0.10+0.40=0.86, $$

and the denominator is \(4+1+0+1+4=10\). Thus, the EBE slope is \(0.86/10=0.086\) random-effect units per covariate unit. The slope of the unshrunk \(z_i\) values is \(4.30/10=0.430\), and \(0.20(0.430)=0.086\), confirming the attenuation for this sample under the common-weight assumption. This finite-sample calculation does not establish the true population slope; it illustrates how the model’s shrinkage changes the plotted values.

When Attenuation Is Not a Simple Multiplication

The factor \(\lambda\) is the same for all subjects only under the simplified assumption that their information is comparable. In a population PK analysis, the amount and timing of concentration data, residual variability, and the model’s sensitivity to an individual parameter can differ between subjects. The amount of shrinkage can therefore vary across the covariate range. In general, if the effective weight is \(\lambda_i\), then the conditional mean of the EBE is approximately \(\lambda_i\gamma x_i\) in this simple data-based-estimate representation. When \(\lambda_i\) changes with \(x_i\), the expected pattern need not be a straight line with one uniformly reduced slope. It may be curved, uneven, or especially compressed in one part of the covariate range.

Worked Example: Covariate-Dependent Attenuation

Suppose, hypothetically, that the true relationship is \(E(\eta_i\mid x_i)=0.50x_i\), but subjects at negative covariate values have \(\lambda_i=0.80\) and subjects at positive values have \(\lambda_i=0.20\). For \(x=(-2,-1,1,2)\), calculate the expected EBEs and their linear slope.

For negative \(x\), multiply the true conditional mean by \(0.80\); for positive \(x\), multiply it by \(0.20\):

$$ E(\hat{\eta}_i\mid x_i)=(-0.80,-0.40,0.10,0.20). $$

The covariate mean and expected-EBE mean are both zero, so the slope is

$$ \frac{(-2)(-0.80)+(-1)(-0.40)+(1)(0.10)+(2)(0.20)} {(-2)^2+(-1)^2+1^2+2^2} = \frac{1.60+0.40+0.10+0.40}{10} =0.25. $$

The underlying slope is \(0.50\), but the slope across these expected EBEs is \(0.25\). Moreover, the pattern is not a single straight-line scaling of the true conditional means: the negative side is compressed less than the positive side. A plot could therefore understate the trend and also disguise how its appearance changes across the covariate range.

Assumptions, Diagnostics, and Alternatives

The exact slope result requires a normal prior, a normal data-based estimate with the stated conditional variance, a zero-centered prior in the fitted model, and a common reliability weight that does not vary with the covariate. The simple observation model also treats the data-based estimate as centered on the individual random effect. These assumptions make the mechanism transparent, but real nonlinear mixed-effects models need not satisfy them exactly. In particular, an EBE may be a posterior mode rather than a posterior mean, and the relationship between the concentration data and a random effect may be nonlinear. In those cases, the formula is a useful explanation of the direction of the effect, not an exact correction to apply to a plotted slope.

When reviewing an EBE–covariate plot, consider the pattern alongside the information supporting the estimates and the model’s population predictions. A trend can be difficult to see if EBEs are concentrated near zero; uneven compression may appear as different scatter or spread across the covariate range. Also check whether the covariate range is broad enough to reveal a relationship and whether a few subjects dominate the apparent pattern. These checks help describe what the plot can show, but they do not turn the EBE plot into a formal test of the covariate effect.

A practical alternative is to fit and compare population models that include the covariate relationship and assess the change in the model’s fit and parameter estimates using appropriate inferential procedures. A model-based display can also compare population predictions across covariate values. These approaches address the relationship within the fitted likelihood rather than treating noisy, shrunken individual estimates as if they were directly observed random effects. They still depend on model assumptions and adequate data; they are not automatic proof that a covariate has a causal effect.

ApproachWhat it can showMain limitation
Plot EBEs against a covariateA descriptive pattern in the model-based individual estimatesShrinkage can flatten or distort the pattern
Fit a population model with the covariateHow the covariate relationship affects the population model fit and estimatesDepends on model specification, assumptions, and available information
Compare model-based population predictions across covariate valuesThe fitted model’s predicted population behavior over the covariate rangeShows implications of the fitted model, not independent confirmation of it

A common mistake is to reason, “The EBE plot is flat, so the covariate has no effect.” That conclusion treats each EBE as an unshrunk measurement of the true random effect. Under the normal model, however, the expected plotted slope is \(\lambda\gamma\), so it can be near zero because \(\lambda\) is small even when \(\gamma\) is not. The correction is to interpret the plot as a diagnostic of the fitted individual estimates, consider how shrinkage may affect its appearance, and evaluate a proposed covariate relationship with an appropriate population model.

Key takeaway: EBEs borrow information from the population distribution. When the individual data are weak, they are pulled toward the population value, and a covariate trend in the EBEs can be flatter than the underlying relationship. A flat EBE plot is therefore not, by itself, evidence of no covariate effect.

Check Your Understanding

Use the simple normal-model result where appropriate. These questions test both the calculation and the limits of its interpretation.

  1. If \(\omega=0.60\) and \(s=0.80\), calculate \(\lambda\). If the underlying covariate slope is \(0.50\), what is the expected EBE slope under the constant-weight assumptions?
  2. In the normal model, what happens to the expected EBE slope as \(s^2\) becomes much larger than \(\omega^2\)? Explain the direction of the change.
  3. Why can a flat EBE–covariate plot not establish that the true covariate slope is zero?
  4. If the reliability weight differs systematically across the covariate range, why might a single attenuation factor fail to describe the plotted pattern?

Solutions. (1) \(\omega^2=0.36\) and \(s^2=0.64\), so \(\lambda=0.36/(0.36+0.64)=0.36\). The expected EBE slope is \(0.36(0.50)=0.18\) random-effect units per covariate unit. (2) Since \(\lambda=\omega^2/(\omega^2+s^2)\), a much larger \(s^2\) makes \(\lambda\) close to zero. The expected EBE slope \(\lambda\gamma\) is then strongly compressed toward zero. (3) The EBE slope can be attenuated when the individual data are uncertain; a weak plotted trend can therefore arise even when the underlying slope is nonzero. Sampling variation can also affect the finite-sample plot. (4) If \(\lambda_i\) changes with \(x_i\), the expected EBE pattern is \(\lambda_i\gamma x_i\), so different parts of the covariate range can be compressed by different amounts. The resulting pattern may be curved or uneven rather than a straight line with one common reduced slope.

Clinical Biostats