Why Replication Is Needed
A formulation comparison concerns more than average exposure. Subjects can differ in their typical exposure, and the same subject can have different exposures on separate administrations of the same formulation. Replicate designs, in which a subject receives a formulation more than once, provide information to distinguish those sources of variation. Without replication, a single observation on a formulation cannot generally separate its occasion-to-occasion variability from other unexplained variation.
In model-based pharmacokinetic analysis, the observations may be concentrations used to fit a structural model, while the quantities of interest are exposure metrics such as AUC or Cmax derived from that model. Variability should therefore be defined on the scale of the quantity being compared. This tutorial uses a log-transformed exposure metric to make the variance components explicit. A concentration-level model can estimate occasion-level random effects on pharmacokinetic parameters and propagate them to exposure metrics, but concentration residual error is not automatically the same as within-subject exposure variability.
A Mixed-Effects Representation
Let \(y_{ifr}\) be the natural logarithm of an exposure metric for subject \(i\), formulation \(f\), and replicate occasion \(r\). A useful endpoint-level representation is
Here \(\mu_f\) is the population mean log exposure for formulation \(f\); \(b_i\) is a subject effect shared across formulations; \(u_{if}\) is the subject's stable formulation-specific deviation; and \(e_{ifr}\) is the occasion-specific deviation. A common model assumes \(b_i\) has mean zero and variance \(\sigma_b^2\), the vector \((u_{iR},u_{iT})\) has mean zero and covariance matrix \(\Sigma_U\), and the occasion errors are independent with \(e_{ifr}\sim N(0,\sigma^2_{Wf})\). The occasion errors are also assumed independent of the stable effects. These normal assumptions define a standard likelihood model; other distributions or covariance structures may be appropriate if the data warrant them.
The diagonal entries of \(\Sigma_U\) are the variances of stable subject-by-formulation deviations; its off-diagonal entry \(\sigma_{U,RT}\) is their covariance. These are distinct from \(\sigma^2_{WR}\) and \(\sigma^2_{WT}\), the formulation-specific occasion variances. Separating those quantities matters: repeated occasions within a formulation identify occasion variability, while the pattern of responses across subjects informs stable subject effects.
This decomposition also needs an identifiable parameterization. With only two formulations, a freely estimated common subject intercept and an unrestricted covariance matrix for two formulation-specific random effects can be redundant: several combinations can describe the same covariance in the observed responses. The model must constrain or otherwise define the shared and formulation-specific components, and the design must contain sufficient replication. A fitted model should not be treated as having estimated distinct components merely because software returned estimates.
Estimating Occasion Variances From Replicates
The simplest calculation applies when each subject receives a formulation twice, occasion effects have been adjusted for any systematic design effects, and the two occasion errors are independent, mean-zero, and have the same variance \(\sigma^2_{Wf}\). For each subject, form the difference between the two log exposures. The shared subject effects and the subject's stable formulation-specific effect cancel.
The variance of the subject-level differences, divided by two, is therefore a method-of-moments estimate of \(\sigma^2_{Wf}\). This derivation explains both the usefulness and the limits of the calculation: unequal occasion variances, correlated replicate errors, unadjusted systematic effects, or missing replicates change the relationship.
Worked Example: Difference-Based Within-Subject Variances
Suppose six hypothetical subjects each receive reference formulation R twice and test formulation T twice. After adjustment for the planned design effects, their log-exposure differences (first replicate minus second) are, for R, \(0.10,-0.20,0.00,0.30,-0.10,0.20\), and for T, \(0.20,-0.10,0.30,-0.20,0.10,-0.30\). Assume independent, equal-variance occasion errors within each formulation and no carryover.
For R, the mean difference is \(\bar d_R=0.05\). The sum of squared deviations from this mean is \(0.175\), so the sample variance is \(s^2_{d_R}=0.175/(6-1)=0.0350\). Thus,
For T, the differences have mean zero and the sum of squares is \(0.280\). Hence \(s^2_{d_T}=0.280/5=0.0560\), giving \(\widehat{\sigma^2_{WT}}=0.0560/2=0.0280\) and \(\widehat{\sigma_{WT}}=\sqrt{0.0280}=0.167\). These estimates are on the natural-log exposure scale; they do not have units of concentration or time. The calculation supports a larger estimated occasion standard deviation for T in this small hypothetical sample, but it does not by itself establish that the population variances differ.
Estimating and Interpreting Covariance
The covariance of stable subject-specific formulation responses answers a different question from the occasion variance. Positive covariance means subjects who tend to have above-average stable responses for one formulation also tend to do so for the other, after the model's shared subject component is defined. Negative covariance means those deviations tend to move in opposite directions. Covariance is scale-dependent and should be interpreted alongside its corresponding variances; the correlation is \(\rho_U=\sigma_{U,RT}/(\sigma_{U,R}\sigma_{U,T})\), when both variances are positive.
Replication improves estimation of each subject's formulation-specific expected response by averaging over occasions, while a mixed-effects likelihood uses all observations and accounts for the greater uncertainty in a subject mean based on fewer replicates. In a simple balanced illustration, if adjusted formulation-specific stable deviations \(u_{if}\) were known, their sample covariance would estimate \(\sigma_{U,RT}\). In actual data those deviations are latent, not directly observed; restricted maximum likelihood (REML) or maximum likelihood estimates the variance components jointly rather than treating estimated subject effects as error-free observations.
Worked Example: A Stable-Effect Covariance
For illustration, suppose a fitted model for six hypothetical subjects yields the following adjusted stable deviations (in log-exposure units), with the shared subject component already handled by the model: \(u_R=(-0.20,-0.10,0,0.10,0.20,0)\) and \(u_T=(-0.10,-0.20,0.10,0,0.20,0)\). Both sample means are zero. The sample covariance is
The corresponding sample variances are \(s_R^2=0.100/5=0.0200\) and \(s_T^2=0.100/5=0.0200\), so the illustrative correlation is \(0.0160/\sqrt{0.0200(0.0200)}=0.800\). This positive association describes stable formulation-specific deviations under the stated model. It is not evidence that one formulation causes a response to the other. In practice, the displayed deviations are estimated with error, so their raw sample covariance is not generally the final variance-component estimate; the likelihood must account for that error and the chosen parameterization.
Why the Components Matter for Comparisons
The covariance structure determines the variability of a formulation contrast. For a subject's stable deviations, the test-minus-reference contrast is \(u_{iT}-u_{iR}\), whose variance is
Thus, the covariance cannot be omitted when the target is the distribution of subject-specific formulation contrasts. A positive covariance reduces the variance of the difference; a negative covariance increases it. Occasion variability contributes separately to the uncertainty in observed or predicted exposures, according to the number of occasions and the estimand. For independent occasion errors, the variance of the difference between one T occasion and one R occasion includes \(\sigma^2_{WT}+\sigma^2_{WR}\); averaging replicate occasions reduces the contribution from each formulation's occasion variance.
Worked Example: Variance of a Formulation Contrast
Suppose a hypothetical fitted model estimates stable-effect variances \(\sigma^2_{U,R}=0.020\) and \(\sigma^2_{U,T}=0.020\), with covariance \(\sigma_{U,RT}=0.016\), as in the preceding illustration. The variance of the stable test-minus-reference contrast is
Its standard deviation is \(\sqrt{0.0080}=0.0894\) log-exposure units. If the covariance were incorrectly set to zero, the calculated variance would be \(0.040\), five times as large. Conversely, using a covariance that is too positive would understate contrast variability. This calculation concerns the stable subject-specific contrast; it should not be confused with the standard error of an estimated population mean contrast, which also depends on sample size and the full fitted model.
Model Fitting, Checks, and Alternatives
A practical analysis can fit the mixed-effects model to log exposure metrics derived consistently from each subject's replicate profiles, or fit a concentration-time model with occasion-level random effects and derive exposure metrics from its predictions. In either case, the variance interpretation depends on where the random effects enter the model. For example, variability in an occasion-specific bioavailability parameter may induce variability in AUC and Cmax, while concentration residual error represents deviations of measured concentrations from the modeled profile. They should not be equated without a model-based justification.
REML is commonly used for variance-component estimation in a specified linear mixed model because it accounts for estimation of fixed effects; maximum likelihood is another option, particularly for comparing models with different fixed-effects structures. Both rely on the specified likelihood and covariance structure. Estimates near zero, unstable covariance estimates, or large changes under small modeling choices can signal weak information or a boundary problem. A covariance matrix must be positive semidefinite, so its variances cannot be negative and its correlations must lie between \(-1\) and \(1\).
Useful checks include confirming that the replicate schedule truly repeats formulations within subjects, inspecting replicate differences for outliers or systematic order patterns, checking whether variance estimates are sensitive to individual subjects, and verifying that the optimizer converged to a valid covariance matrix. A funnel-shaped pattern in replicate differences across fitted exposure levels may indicate that a constant variance on the log scale is unsuitable. These are warnings to revisit the model and data, not automatic grounds for selecting a more complex covariance structure.
Difference-based estimates are transparent and useful for a balanced two-replicate design, but they do not readily accommodate unequal replication, missing occasions, or several sources of random variation. Mixed-effects likelihood can use unbalanced observations and estimate components jointly, at the cost of stronger modeling assumptions and greater sensitivity to identifiability and convergence. A nonreplicate design may estimate an overall residual variation under additional assumptions, but it cannot provide the same direct within-subject replication information for each formulation.
The estimates matter when model-based comparisons depend on the distribution of individual formulation responses, not only on the population mean contrast. Their interpretation is conditional on the exposure scale, the random-effects parameterization, the replicate design, and the assumed error structure. A precisely reported component is not necessarily a well-identified or robust component, so report its scale and uncertainty and explain which sources of variation it represents.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions.
- If the variance of paired replicate differences for a formulation is \(0.050\), what is the difference-based estimate of its within-subject variance under the stated independent equal-variance assumptions?
- Why does a shared subject effect cancel in the difference between two administrations of the same formulation?
- For stable formulation-specific deviations, let the two variances be \(0.09\) and \(0.04\), and their covariance be \(0.03\). Find the variance of their difference.
- Why is a covariance computed from fitted subject-specific deviations not automatically an unbiased final estimate?
- Name one feature of the data or fit that would prompt scrutiny of the variance-component model.
Solutions. (1) Divide by two: \(\widehat{\sigma^2_W}=0.050/2=0.025\). (2) The same subject effect enters both log exposures with coefficient one, so subtracting the two observations removes it, as well as any stable formulation-specific effect. (3) The variance is \(0.09+0.04-2(0.03)=0.070\). (4) The fitted deviations are latent quantities estimated with error; a mixed-effects likelihood must account for that uncertainty and the model structure. (5) Examples include a covariance matrix that is not positive semidefinite, convergence failure, estimates at a boundary, influential replicate differences, or systematic patterns in replicate differences.