Tutorials › Nonlinear Mixed-Effects Models (NLME) › Fixed Effects and Random Effects in Parameter Models

The Hierarchical Model · Tutorial 90 of 797

Fixed Effects and Random Effects in Parameter Models

Distinguish population fixed effects from subject-level random effects and see how each contributes to an NLME parameter model.

Intermediate 9 min read

What You'll Learn

  • Define fixed effects and random effects in a hierarchical parameter model.
  • Distinguish population parameters from subject-specific latent deviations.
  • Interpret a random-effects variance and covariance matrix.
  • Understand why a zero-mean random effect does not mean individuals have no variability.
  • Identify assumptions, diagnostics, and limitations of the fixed/random-effects distinction.

Why Separate Population Values From Individual Differences?

A pharmacokinetic model may describe concentration over time using parameters such as clearance and volume. Even when subjects receive the same regimen, their concentration profiles need not be identical. A nonlinear mixed-effects model represents this structure by separating population-level parameter values from subject-level departures. This distinction is central: the population values are treated as fixed unknown quantities, while the departures are represented as random variables.

The earlier material on the three levels of the NLME hierarchy established the roles of the structural model, parameter model, and residual model. Here the focus is the parameter model: what its fixed effects mean, what its random effects mean, and what assumptions make the distinction useful. The exact function that maps population values and random effects to individual parameters is a separate modeling choice; it is not determined merely by calling one part fixed and the other random.

Definition: Fixed effects are population-level unknown parameters that define the systematic or typical part of a parameter model. Random effects are subject-level latent random variables that represent departures among individuals from that population structure. In a general parameter model, write the parameter for subject \(i\) as \(\theta_i = g(\theta,\eta_i)\), where \(\theta\) denotes the fixed effects, \(\eta_i\) denotes subject \(i\)'s random effects, and \(g\) is the chosen mapping.

The notation \(\theta_i=g(\theta,\eta_i)\) is deliberately general. It says that individual parameters depend on population quantities and on subject-level random effects, without specifying how they are combined. Different models use different mappings, and those choices can change the scale and interpretation of \(\eta_i\). Therefore, the random effect is not automatically a difference measured in the units of the pharmacokinetic parameter.

A common distributional assumption is that the random-effects vector for each subject follows the same distribution across the population, often a multivariate normal distribution with mean zero and covariance matrix \(\Omega\):

$$ \eta_i \sim N(0,\Omega) $$

This assumption says that the model assigns a population distribution to the latent deviations. The zero mean centers that distribution; it does not say that every subject has \(\eta_i=0\). The diagonal elements of \(\Omega\) are random-effect variances, and its off-diagonal elements are covariances. The fixed effects \(\theta\) and distributional parameters such as \(\Omega\) are unknown population quantities estimated from data. They are not subject-specific random effects.

How the Two Parts Enter the Hierarchy

Let \(y_{ij}\) denote an observation for subject \(i\) at observation occasion \(j\). A structural model predicts that observation from time and the subject-specific parameter vector. A schematic form is

$$ y_{ij}=f(t_{ij};\theta_i)+\epsilon_{ij}, \qquad \theta_i=g(\theta,\eta_i). $$

Here \(f\) is the structural model, \(t_{ij}\) is the observation time, and \(\epsilon_{ij}\) represents residual variation not explained by the structural prediction. The fixed effects determine the population-level parameter structure; \(\eta_i\) allows the parameters used for subject \(i\) to differ. Repeated observations from one subject share the same \(\eta_i\) in this basic formulation, while their residual errors may differ across observations.

For the usual hierarchical interpretation, subjects are treated as draws from the target population, with random effects that follow the specified distribution and are independent across subjects. The residual model must also be specified; commonly, residual errors are assumed conditionally independent across observations given the subject parameters, though other residual structures can be used. These are modeling assumptions, not consequences of the labels “fixed” and “random.” They should be checked for scientific and statistical plausibility.

The population distribution links the subject-level and population-level parts. By the law of total probability, the probability of one subject's observed data is obtained by averaging its conditional probability over possible random effects:

$$ p(y_i\mid\theta,\Omega) = \int p(y_i\mid\eta_i,\theta)\,p(\eta_i\mid\Omega)\,d\eta_i. $$

The first factor inside the integral describes the data conditional on the subject's random effects and the fixed effects. The second describes how likely those random effects are in the population. Integrating combines the two: the model does not treat each subject's latent deviation as an unrelated fixed parameter, but accounts for the population distribution from which deviations are assumed to arise. This marginalization is one reason nonlinear mixed-effects estimation can be computationally demanding.

Worked Example: Reading a Population Value and Subject Deviations

Suppose a hypothetical one-parameter model has a fixed effect \(\theta=5.00\) L/h for a population-level typical clearance value. Its subject-level random effect is assumed to follow a normal distribution with variance \(0.16\) on the model's random-effect scale. For illustration, suppose three subjects have latent random-effect values \(-0.20\), \(0.00\), and \(0.40\). What can be concluded from these quantities?

The random-effect standard deviation is the square root of the variance:

$$ \sqrt{0.16}=0.400. $$

Thus the model's random effects have a standard deviation of \(0.400\) on their own scale. The three stated values are respectively \(-0.20/0.40=-0.500\), \(0/0.40=0\), and \(0.40/0.40=1.00\) standard deviations from zero. The second subject is at the center of the assumed random-effects distribution; the third is one standard deviation above it on that scale.

The fixed effect remains \(5.00\) L/h for the population-level parameter structure. Without specifying \(g\), the three random-effect values cannot be converted into individual clearances. In particular, it would be incorrect to report individual clearances by adding these values directly to \(5.00\) L/h: the random effects may not be measured in L/h, and the mapping has not been specified.

Variance and Covariance Describe the Population Spread

When a model includes more than one random effect, \(\Omega\) describes both the spread of each component and how components vary together. For example, let \(\eta_{i1}\) and \(\eta_{i2}\) be two random effects associated with two parameters. A covariance matrix must be symmetric and positive semidefinite; in ordinary cases with nonzero variance, it can be written as follows.

$$ \Omega = \begin{pmatrix} \omega_{11} & \omega_{12}\\ \omega_{12} & \omega_{22} \end{pmatrix}. $$

The variances are \(\omega_{11}\) and \(\omega_{22}\). The covariance \(\omega_{12}\) describes the direction and magnitude of joint variation on the random-effects scales. Because covariance depends on scale, the correlation is often easier to compare across components:

$$ \operatorname{Corr}(\eta_{i1},\eta_{i2}) = \frac{\omega_{12}}{\sqrt{\omega_{11}\omega_{22}}}. $$

Worked Example: Interpreting a Two-Effect Covariance Matrix

Consider a hypothetical model with two random effects and estimated covariance matrix

$$ \widehat{\Omega} = \begin{pmatrix} 0.040 & 0.030\\ 0.030 & 0.090 \end{pmatrix}. $$

The random-effect standard deviations are \(\sqrt{0.040}=0.200\) and \(\sqrt{0.090}=0.300\), each in the scale of its corresponding random effect. The correlation is

$$ \widehat{\operatorname{Corr}}(\eta_{i1},\eta_{i2}) = \frac{0.030}{\sqrt{0.040(0.090)}} = \frac{0.030}{0.060} = 0.500. $$

The positive correlation indicates that, under the fitted distribution, subjects with larger values of the first random effect tend also to have larger values of the second. It does not establish a causal relationship, and it does not by itself state the correlation between the corresponding individual pharmacokinetic parameters. That interpretation depends on the mapping \(g\).

Why Zero Mean Does Not Mean Zero Variability

A zero-mean assumption is about the center of a population distribution, not about each subject. A small hypothetical set of four random-effect values makes the distinction concrete. Suppose the values are \(-0.30\), \(-0.10\), \(0.10\), and \(0.30\), all on the same random-effect scale. Their mean is

$$ \bar{\eta} = \frac{-0.30-0.10+0.10+0.30}{4} = 0. $$

Yet the values are not all zero. Their sample variance is

$$ s^2_{\eta} = \frac{(-0.30)^2+(-0.10)^2+(0.10)^2+(0.30)^2}{4-1} = \frac{0.20}{3} = 0.0667. $$

This calculation is descriptive for these four values; it is not generally a substitute for estimating \(\Omega\) in an NLME model. In fitted models, subject-level random-effect estimates are informed by each subject's data and by the population distribution, so their empirical spread need not equal the estimated population variance. The example nevertheless shows the basic point: deviations can average to zero while varying substantially across subjects.

Assumptions, Diagnostics, and Alternatives

Interpreting fixed and random effects requires more than fitting an equation. The population structure should be appropriate for the target population, the random-effects distribution should be a reasonable approximation, and the data should contain enough information to distinguish population parameters from individual variation and residual error. In particular, a random-effect variance is difficult to estimate when the study design provides little information about between-subject differences.

Useful warning signs include variance estimates close to zero, unstable estimates across reasonable model fits, correlations near \(1\) or \(-1\), and uncertainty so large that very different values remain plausible. These patterns may indicate limited information, redundant random effects, or an unsuitable model structure. They are not automatic proof that a random effect is absent or that the model is wrong. Check whether the model's predictions and residual patterns are adequate, whether the parameterization is scientifically sensible, and whether the data support the complexity being estimated.

A model with no random effects treats the parameter values as common across subjects, apart from any explicitly modeled differences and residual error. It is simpler, but it cannot represent subject-level parameter heterogeneity through \(\eta_i\). At the other extreme, estimating a separate unrestricted parameter for every subject does not impose a shared population distribution and can use many parameters. A mixed-effects model lies between these approaches: subjects have latent departures, while those departures are modeled as draws from a common distribution. This pooling can stabilize estimates, but depends on the distributional and structural assumptions being adequate.

Common pitfall: “The random effects have mean zero, so the subjects all have the population parameter.” This is incorrect: a zero population mean allows nonzero subject-level deviations, with their spread described by \(\Omega\). A second error is to assume that a random effect is always an additive amount in the units of a pharmacokinetic parameter. Its scale and its relationship to the individual parameter are set by \(g\), which must be stated before making that interpretation.

The fixed/random distinction also has limits. It does not guarantee that the chosen population distribution is correct, that all relevant sources of variability have been represented, or that population estimates will be precise. Nor does a fitted random-effects covariance establish a biological mechanism. It summarizes variability under the specified model. A sound interpretation therefore names the fixed-effect quantity, the random-effect scale, the distributional assumption, and the parameter mapping rather than treating “fixed” and “random” as self-explanatory labels.

Check Your Understanding

Answer each question using the distinction between population-level quantities and subject-level latent variability.

  1. A random effect has a population mean of zero and variance \(0.25\). What is its standard deviation, and does the zero mean imply every subject's random effect is zero?
  2. Why can a random-effect value not automatically be added to a clearance value expressed in L/h?
  3. For two random effects, the variances are \(0.04\) and \(0.16\), and their covariance is \(0.04\). Calculate their correlation.
  4. What is the conceptual difference between a model with no subject-level random effects and one with a shared random-effects distribution?

Solutions. (1) The standard deviation is \(\sqrt{0.25}=0.500\) on the random-effect scale. No: zero is the distribution's mean, not every subject's value. (2) The random effect may be on a different scale, and the mapping \(g\) must be specified to determine how it relates to clearance. (3) The correlation is \(0.04/\sqrt{0.04(0.16)}=0.04/0.08=0.500\). (4) The model without random effects assigns no subject-level parameter departures through this part of the model; the mixed-effects model allows departures and describes their population distribution.