Why Repeated Biomarker Measures Need a Participant-Level Model
When a biomarker is measured several times in each participant, observations from the same person are generally related. A participant may have a persistently higher or lower biomarker level than others, even at comparable exposures. In addition, each measurement may contain occasion-specific biological variation and assay error. Treating every observation as independent can therefore misrepresent both the uncertainty in exposure-response estimates and the sources of variation.
The aim here is to model those sources separately. The exposure-response function describes the systematic relationship of interest; a participant-level random effect represents persistent differences between participants; and a residual term represents deviations that vary from measurement to measurement. This framework builds on the earlier material on direct-effect, turnover, and effect-compartment models: the exposure-response function can be selected from that material, while the repeated-measure structure is specified separately.
A Random-Intercept Model for Repeated Biomarkers
Let \(Y_{ij}\) be the biomarker measurement for participant \(i\) at occasion \(j\), and let \(C_{ij}\) be the corresponding exposure. A useful starting point is a random-intercept model:
Here \(f(C_{ij};\boldsymbol{\theta})\) is the population exposure-response function, with parameters \(\boldsymbol{\theta}\); \(b_i\) is participant \(i\)'s random intercept; and \(\varepsilon_{ij}\) is the residual for that measurement. For example, \(f\) might be a linear function or a previously specified pharmacodynamic function. The repeated-measure structure does not itself determine the shape of \(f\).
A standard Gaussian version assumes \(b_i\sim N(0,\omega^2)\) and \(\varepsilon_{ij}\sim N(0,\sigma^2)\), with random effects independent between participants and residuals independent across occasions and participants. It also assumes that random effects and residuals are independent of one another and, in this basic model, that the random intercept is independent of the exposures. The mean function and variance structure should be appropriate for the biomarker scale. If residual variability changes systematically with the predicted response or exposure, a constant \(\sigma^2\) may be inadequate.
The zero mean for \(b_i\) defines the population-level mean function: across participants, random intercept deviations average to zero. The variance \(\omega^2\) describes between-participant variability in persistent level, while \(\sigma^2\) describes within-participant residual variability under the assumed model. Neither variance should automatically be labelled “biological” or “assay” error alone; the residual may combine several unmodelled sources.
What the Random Intercept Implies
The covariance structure follows directly from the model. Suppose two observations are from the same participant but different occasions. Their shared random intercept contributes covariance, while their independent residuals do not. For a single observation, both terms contribute variance.
Thus, under this model, repeated observations have positive within-participant correlation even after accounting for exposure. The intraclass correlation coefficient (ICC), the correlation between two distinct observations from the same participant under the stated assumptions, is:
For participant \(i\), the vector of observations has mean vector \(\mathbf{f}_i\) and covariance matrix \(\omega^2\mathbf{1}\mathbf{1}^{\mathsf T}+\sigma^2\mathbf{I}\), where \(\mathbf{1}\) is a vector of ones and \(\mathbf{I}\) is an identity matrix of the appropriate size. More generally, if a model has random effects with design matrix \(\mathbf{Z}_i\) and covariance matrix \(\mathbf{G}\), and residuals with covariance matrix \(\mathbf{R}_i\), then its marginal covariance matrix is \(\mathbf{Z}_i\mathbf{G}\mathbf{Z}_i^{\mathsf T}+\mathbf{R}_i\). This makes explicit how both participant effects and residual assumptions determine dependence.
Worked Example: Interpreting the Variance Components
Suppose a hypothetical fitted random-intercept model estimates \(\omega^2=9\) biomarker-units squared and \(\sigma^2=16\) biomarker-units squared. Calculate the variance of one observation and the correlation between two observations from the same participant on different occasions.
The single-observation variance is the sum of the two components:
The within-participant covariance for two distinct occasions is \(9\ \text{biomarker-units}^2\). Therefore:
Under this model, two distinct observations from the same participant have correlation 0.36 after accounting for exposure. This is not the proportion of all variability that is “caused” by participants; it is the model-based fraction of single-observation variance attributable to the random intercept.
Within-Person and Between-Person Exposure Effects
A key interpretive issue is that exposure varies both within participants over time and between participants. These patterns need not have the same relationship with the biomarker. A participant with a higher average exposure may differ in other ways from a participant with a lower average exposure; that between-person association does not, by itself, show how the biomarker changes when an individual’s exposure changes.
For a linear exposure-response analysis, one way to distinguish the associations is to decompose exposure into its participant mean and the occasion-specific deviation from that mean:
Here \(\bar{C}_i\) is participant \(i\)'s mean exposure over the included occasions, and \(\bar{C}\) is the average of the participant means in the analysis. The coefficient \(\beta_W\) describes the modelled within-person association: the expected biomarker difference associated with a one-unit exposure difference from that participant’s own mean, holding the other model terms fixed. The coefficient \(\beta_B\) describes the between-person association with participant mean exposure. These are distinct estimands, not two interchangeable estimates of a single universal effect.
This decomposition does not guarantee causal interpretation. For example, time-varying factors could influence both exposure and biomarker, and participant means could be related to unmeasured participant characteristics. It does make the two sources of exposure variation explicit, so the fitted coefficients are easier to interpret than a single pooled slope when within- and between-person relationships differ.
Worked Example: Separating Within-Person and Between-Person Slopes
Consider hypothetical observations from three participants, with exposure in concentration units and biomarker response in biomarker units.
| Participant | Exposure values | Biomarker values | Mean exposure | Mean biomarker |
|---|---|---|---|---|
| A | 0, 2 | 8, 12 | 1 | 10 |
| B | 1, 3 | 13, 17 | 2 | 15 |
| C | 2, 4 | 18, 22 | 3 | 20 |
For the within-person slope, subtract each participant's mean from each observation. Each participant has exposure deviations \(-1,1\) and biomarker deviations \(-2,2\). The within-person least-squares slope is:
The estimated within-person association is 2 biomarker units per concentration unit. For the between-person slope, regress the three participant mean responses (10, 15, 20) on their mean exposures (1, 2, 3). The means of these participant means are 2 concentration units and 15 biomarker units, so:
The between-person association is 5 biomarker units per concentration unit, different from the within-person association of 2. A pooled regression that ignores the decomposition gives a slope of \(32/10=3.2\) biomarker units per concentration unit for these six observations: the overall mean exposure is 2, the overall mean response is 15, the sum of cross-products is 32, and the sum of squared exposure deviations is 10. That pooled slope mixes the two patterns and does not equal either distinct association.
Fitting Choices and Model Assumptions
In a Gaussian mixed-effects model, the fixed-effect parameters and variance components can be estimated by maximum likelihood or restricted maximum likelihood (REML). In either case, the repeated observations from one participant contribute jointly through their mean vector and covariance matrix; they are not treated as independent records. A fitted model should state which exposure-response function was used, which participant-level effects were included, and what residual covariance structure was assumed.
A random intercept is a parsimonious starting point when participants appear to differ in level but the data do not support more complex subject-specific patterns. If the exposure-response slope plausibly differs between participants, a random-slope model may be considered. For a linear exposure term, one possible extension is:
The random intercept \(b_{0i}\) and random slope \(b_{1i}\) are typically modelled jointly, allowing a covariance between them. This represents participant-specific deviations in both level and exposure slope. It requires enough informative repeated measurements and exposure variation to estimate the additional variance components. A more elaborate model is not automatically more reliable.
The simple model assumes that, after accounting for the mean function and random effects, residuals have the specified distribution and dependence. In particular, independent residuals may be unrealistic if measurements close in time remain more alike than measurements far apart. A time-dependent residual covariance model may then be needed. The exposure and response should also be aligned appropriately in time; a model that pairs the wrong exposure with a biomarker measurement can produce a misleading relationship even if its statistical structure is otherwise well specified.
Useful initial checks include plotting participant-level trajectories, comparing observed and model-predicted values over time and exposure, and examining residuals for systematic trends, changing spread, and serial patterns. Large participant-specific departures, curvature, or residual autocorrelation can signal that the mean function, random-effects structure, or residual model is inadequate. These checks identify concerns to investigate; they do not prove that assumptions hold.
Participant Averages and Their Precision
Repeated observations can improve the precision of a participant’s estimated level, but averaging does not remove all variation. Under the random-intercept model, for \(m\) observations with independent residuals and the same participant-level variance, the variance of a participant’s average around its modelled mean is:
The persistent participant component remains, while the independent residual contribution decreases as more measurements are averaged. If residuals are correlated, the residual contribution does not generally reduce to \(\sigma^2/m\). Thus, counting measurements as if each provided an independent participant does not correctly quantify the information in a study.
Worked Example: How Repeated Measures Change the Variance of an Average
Suppose a hypothetical model has \(\omega^2=9\) and \(\sigma^2=16\) biomarker-units squared, as in the earlier calculation, and a participant has \(m=4\) measurements with independent residuals. The variance of a single observation is \(9+16=25\ \text{biomarker-units}^2\). The variance of the participant average is:
The standard deviation of the average is \(\sqrt{13}=3.606\) biomarker units, compared with \(\sqrt{25}=5\) biomarker units for one observation. The average is more precise because its independent residual component is smaller, but its variance remains above zero because participants still differ through \(b_i\). Adding measurements does not create additional independent participants or eliminate between-participant variation.
Alternatives, Limitations, and Common Pitfalls
The random-effects model is not the only way to handle repeated outcomes. A model with participant fixed effects can control for stable participant characteristics while estimating within-person associations, but it does not estimate a population distribution of participant effects and cannot estimate a between-person effect in the same way. Generalized estimating equations (GEE) instead target a population-average relationship and use a working correlation structure; their interpretation and variance estimation differ from a likelihood-based mixed model. The choice depends on the scientific estimand, outcome distribution, design, and assumptions—not simply on which method produces a preferred result.
A basic Gaussian model can be unsuitable for a bounded, skewed, or otherwise non-Gaussian biomarker, or when residual variance changes across the response range. Random-effect distributions and residual independence are also assumptions, not facts guaranteed by fitting software. Sparse measurements, little exposure change within participants, and a small number of participants can make variance components or random slopes difficult to estimate. Model complexity should be supported by the design and the data.
- Pitfall: treating all observations as independent. The reasoning “there are 100 measurements, so there are 100 independent units” ignores shared participant effects. Model participant-level dependence; the number of participants and the number of repeated measurements convey different information.
- Pitfall: interpreting a pooled exposure slope as a within-person response. A pooled slope can combine within-person changes with differences in average exposure across participants. Separate these terms when their interpretations matter.
- Pitfall: assuming the residual is only assay error. Residual variation can include measurement error, short-term biological variation, and misspecification. Interpret \(\sigma^2\) as residual variation under the specified model unless its sources are independently established.
- Pitfall: adding random slopes because they seem more realistic. A random slope requires sufficient exposure variation and repeated information to estimate. Check whether the data support it and whether the fitted model behaves sensibly.
Check Your Understanding
Try each question, then compare your reasoning with the solutions.
- Under a random-intercept model with \(\omega^2=4\) and \(\sigma^2=12\), what is the ICC for distinct observations from the same participant?
- In a within-between exposure model, what does \(\beta_W\) describe, and why is it not automatically a causal effect?
- Under independent residuals, how does the variance of a participant’s average change as the number of measurements increases?
- Name one reason a random-slope model may be difficult to estimate in a small early-phase study.
Solutions. (1) \(\operatorname{ICC}=4/(4+12)=0.25\), so the model-implied correlation is 0.25. (2) \(\beta_W\) describes the modeled association between an individual’s exposure deviation from their own mean and their biomarker response, holding other terms fixed; time-varying confounding or other departures from the model can prevent a causal interpretation. (3) Its variance is \(\omega^2+\sigma^2/m\): the independent residual contribution decreases with \(m\), but the participant-level contribution remains. (4) There may be too few participants, too few repeated measurements per participant, or too little within-person exposure variation to estimate participant-specific slopes and their variance reliably.