Tutorials › Bioavailability and Bioequivalence › Within-Subject Reference Variance in Replicate Data

Reference-Scaled Approaches for Highly Variable Drugs · Tutorial 246 of 399

Within-Subject Reference Variance in Replicate Data

Learn to identify the reference-specific within-subject variance from replicate observations and avoid confusing it with between-subject or pooled variability.

Advanced 11 min read

What You'll Learn

  • Define reference-specific within-subject variance in a repeated-reference model.
  • Separate within-subject variability from between-subject variability using the model covariance structure.
  • Calculate a reference-variance estimate from paired, period-adjusted reference observations.
  • Explain why marginal variance and pooled residual variance are not automatically reference-specific.
  • Check the assumptions that make replicate observations informative about reference variability.
  • Diagnose design and model features that can distort the variance estimate.

Why the Source of Variability Matters

Repeated reference administrations provide information that a single reference observation per subject cannot: they allow variability between subjects to be distinguished from variability within a subject across reference occasions. That distinction matters in reference-scaled bioequivalence because the relevant variability is specific to the reference treatment, not simply the spread of all observed concentrations or exposure values.

The endpoint is commonly analyzed on a logarithmic scale. The variance discussed here is therefore a variance of log-transformed endpoint values, with units of squared log units. This tutorial focuses on identifying that reference-specific variance from repeated reference observations. It does not convert the variance to a within-subject coefficient of variation or apply a bioequivalence decision rule.

Definition: The reference-specific within-subject variance, written here as \( \sigma_{WR}^{2} \), is the variance of occasion-to-occasion deviations in a subject’s log-scale response under the reference treatment, after accounting for subject-level differences and any modeled period effects. Its square root, \( \sigma_{WR} \), is the reference-specific within-subject standard deviation, in log units.

A Model That Separates the Sources

Let \(Y_{ijR}\) denote the log-scale endpoint for subject \(i\) on reference occasion \(j\). A simple repeated-reference model is

$$ Y_{ijR}=\mu_R+b_i+\varepsilon_{ijR}. $$

Here, \( \mu_R \) is the population mean response under reference, \(b_i\) is subject \(i\)’s deviation from that mean, and \( \varepsilon_{ijR} \) is the occasion-specific deviation for that subject under reference. Assume \(b_i\) has mean zero and variance \( \sigma_B^2 \), and that the occasion deviations have mean zero and variance \( \sigma_{WR}^2 \). The subject effects and occasion deviations are independent; occasion deviations from distinct reference administrations are also independent and have the same variance.

The subscript \(B\) marks between-subject variability: some subjects tend to have higher responses than others. The subscript \(WR\) marks within-subject reference variability: the same subject’s responses can differ across reference occasions. These components have different meanings even though both contribute to the observed spread.

If the study has period effects, the model should include them, for example as fixed period terms. In the equations and simple calculation below, \(Y_{ijR}\) is understood to have been adjusted for modeled period effects. When the design gives each subject the same two reference periods, a common period difference shifts paired differences by a constant; centering those differences removes that shift. With differing period patterns or subject-specific period effects, an appropriate model adjustment is needed rather than assuming the raw differences are comparable.

Assumptions for the simple variance calculation: Reference observations are on the same endpoint and scale; the reference treatment and measurement conditions are comparable across occasions; subject effects are stable across those occasions; and occasion errors are independent, have mean zero, and share variance \( \sigma_{WR}^2 \). Normal occasion errors support the usual exact small-sample inference for the variance estimate. Period effects, carryover, sequence effects, or correlated occasion errors must be addressed if present.

Why Repetition Identifies the Within-Subject Component

Under the model, a single reference observation varies both because subjects differ and because an individual’s response varies from one reference occasion to another. Repeated observations on the same subject share the same \(b_i\), so the covariance between two adjusted reference responses from that subject is

$$ \operatorname{Cov}(Y_{i1R},Y_{i2R})=\operatorname{Var}(b_i)=\sigma_B^2. $$

The variance of one response is \( \sigma_B^2+\sigma_{WR}^2 \). Subtracting the two responses for the same subject removes \(b_i\), because that subject effect appears in both:

$$ Y_{i1R}-Y_{i2R}=\varepsilon_{i1R}-\varepsilon_{i2R}. $$

Independence and equal variance of the two occasion errors then give the key identity:

$$ \operatorname{Var}(Y_{i1R}-Y_{i2R}) =\operatorname{Var}(\varepsilon_{i1R})+\operatorname{Var}(\varepsilon_{i2R}) =2\sigma_{WR}^{2}. $$

This explains the information supplied by replication: the repeated-reference difference does not contain the stable between-subject effect. If \(d_i=Y_{i1R}-Y_{i2R}\) for each of \(n\) subjects, and the assumptions above hold, the sample variance \(s_d^2\) estimates the variance of those differences. Thus \(s_d^2/2\) estimates the reference-specific within-subject variance.

Result: For complete pairs of adjusted reference observations, an estimator is
$$ \widehat{\sigma}_{WR}^{2}=\frac{s_d^2}{2}, \qquad s_d^2=\frac{\sum_{i=1}^{n}(d_i-\bar{d})^2}{n-1}. $$

Under independent normally distributed occasion errors, \(d_i\) are normally distributed with variance \(2\sigma_{WR}^2\). Consequently, \(s_d^2/2\) is unbiased for \( \sigma_{WR}^2 \), and \(s_d^2\) has \(n-1\) degrees of freedom when estimating the difference variance. Without normality, the variance identity still follows from the stated second-moment assumptions, but exact small-sample distributional claims need not hold.

Worked Example: Estimating Reference Variance From Six Pairs

In a hypothetical replicate study, six subjects each have two period-adjusted log-reference measurements. Their paired differences, defined as first reference value minus second reference value, are \( -0.20,\ 0.10,\ 0.00,\ 0.20,\ -0.10,\ 0.00 \) log units. Assume independent subjects, independent equal-variance occasion errors, and no unadjusted period or carryover effects.

The mean difference is \( \bar{d}=0.00 \) log units. The sample variance of the differences is

$$ s_d^2 =\frac{(-0.20)^2+(0.10)^2+(0.00)^2+(0.20)^2+(-0.10)^2+(0.00)^2}{6-1} =\frac{0.10}{5} =0.0200\ \text{log units}^2. $$

The estimated reference-specific within-subject variance is half of this difference variance:

$$ \widehat{\sigma}_{WR}^{2} =\frac{0.0200}{2} =0.0100\ \text{log units}^2. $$

This is a variance estimate, not a standard deviation. Its square root is \(0.100\) log units. The estimate describes occasion-to-occasion variation under reference after subject-level differences have been removed. It does not describe the spread of all six subjects’ reference measurements around one overall mean.

Distinguishing Marginal, Between-Subject, and Pooled Variability

The marginal variance of a single reference response is

$$ \operatorname{Var}(Y_{ijR})=\sigma_B^2+\sigma_{WR}^2. $$

It is therefore generally incorrect to treat the variance across all reference observations as the within-subject reference variance. That overall spread includes both sources. Conversely, the variability among subject averages is influenced by between-subject variation and by the amount of within-subject noise averaged into each subject’s mean. The level of analysis must match the variance being discussed.

A pooled residual variance from a model containing both test and reference observations is also not automatically \( \sigma_{WR}^2 \). A model may impose one common residual variance across treatments, in which case that pooled quantity estimates a common variance only if the common-variance assumption is reasonable. If residual variability differs by treatment, pooling combines treatment-specific variability and does not isolate reference variability.

Worked Example: Why the Overall Reference Spread Is Not the Target

Suppose, hypothetically, that the model’s between-subject variance is \( \sigma_B^2=0.160 \) log units squared and the reference-specific within-subject variance is \( \sigma_{WR}^2=0.0100 \) log units squared. Under the model, the variance of a single reference response across subjects and occasions is

$$ \operatorname{Var}(Y_{ijR})=0.160+0.0100=0.170\ \text{log units}^2. $$

The corresponding marginal standard deviation is \( \sqrt{0.170}=0.412 \) log units, while the within-subject reference standard deviation is only \( \sqrt{0.0100}=0.100 \) log units. The marginal variance is seventeen times the within-subject variance because it includes the large between-subject component. Using \(0.170\) as the reference-specific within-subject variance would therefore answer the wrong question.

The repeated observations make the separation possible: two responses from one subject share the subject effect, while their difference cancels it. If each subject had only one reference observation, the data would reveal the combined marginal spread but would not, without additional assumptions or information, separate these two components.

Worked Example: A Pooled Residual Can Hide Treatment Differences

Consider a hypothetical model fit with treatment-specific residual spreads. After accounting for subject and other modeled effects, suppose the reference residual sum of squares is \(0.400\) log units squared on 10 degrees of freedom, and the test residual sum of squares is \(0.100\) log units squared on 10 degrees of freedom. The treatment-specific mean squares are

$$ MS_R=\frac{0.400}{10}=0.0400, \qquad MS_T=\frac{0.100}{10}=0.0100 \quad\text{log units}^2. $$

If these are pooled under a common-variance assumption, the pooled estimate is

$$ MS_{\text{pooled}} =\frac{0.400+0.100}{10+10} =\frac{0.500}{20} =0.0250\ \text{log units}^2. $$

The pooled value \(0.0250\) is neither the reference estimate \(0.0400\) nor the test estimate \(0.0100\). It is a degrees-of-freedom-weighted combination. It would estimate a common residual variance if the common-variance model were appropriate; with the displayed treatment-specific differences, it does not identify reference variability. A reference-specific analysis must use the reference information or a model that explicitly represents its variance.

Diagnostics, Alternatives, and Limitations

The calculation is simple, but its interpretation depends on the design and model. Useful checks include verifying that each included subject has the intended repeated reference observations; confirming that the endpoint, transformation, and units match across occasions; examining paired differences for outliers or unusual patterns; and checking whether differences depend on period, sequence, or other design features. A strong period pattern, carryover, or correlation between occasion errors can make the simple \(s_d^2/2\) estimate misleading.

The paired-difference calculation is a direct approach for complete pairs under the stated assumptions. A mixed-effects model is a more flexible alternative when there are additional periods, incomplete observations, or modeled period and sequence effects. Such a model can estimate a reference-specific residual component while accounting for the design, but its interpretation depends on the model specification. A model that imposes one residual variance across treatments does not become reference-specific merely because reference observations are included.

The estimate can also be imprecise when few subjects have repeated reference observations. Sampling variation may make a variance estimate small or large relative to the underlying value; an estimate of zero in a fitted variance-components model, for example, does not prove that the true variability is exactly zero. Normality is particularly relevant for exact variance-based inference in small samples, and independence is essential to the factor-of-two identity. If repeated occasion errors have covariance \(c\), then their difference variance is \(2\sigma_{WR}^2-2c\), not \(2\sigma_{WR}^2\).

1
Identify the repeated reference data.
Confirm which observations are reference administrations for the same subject and which endpoint and scale are being analyzed.
2
Account for the design.
Model or adjust period and other relevant effects; assess whether carryover, sequence patterns, or correlated errors undermine the simple assumptions.
3
Separate the variance meanings.
Distinguish the reference-specific within-subject component from between-subject spread and from any residual variance pooled across treatments.
4
Report the quantity with its scale and units.
State whether the result is a variance in squared log units or a standard deviation in log units, and name the estimator or model used.

Common Mistake

Wrong reasoning: “The standard deviation of all observed reference values is the reference within-subject standard deviation because all the values are reference measurements.” This ignores the fact that subjects can have different stable response levels.

Correction: All-reference data can still contain both between-subject and within-subject variation. Repeated observations identify the within-subject component by comparing reference responses within the same subject, under a model that accounts for the study design. Likewise, a pooled treatment residual is reference-specific only if its model and assumptions justify that interpretation.

Key takeaway: Repeated reference observations identify \( \sigma_{WR}^2 \) because the within-subject comparison removes the stable subject effect. The resulting variance is specific to reference occasions; it is not the marginal spread of reference observations and is not automatically a pooled residual variance.

Check Your Understanding

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

  1. In the repeated-reference model, what contributes to the variance of one reference response, and what contributes to the covariance of two reference responses from the same subject?
  2. A paired-difference sample variance is \(0.0360\) log units squared. Under the simple model, what is the estimated reference-specific within-subject variance?
  3. Why can a dataset with only one reference observation per subject fail to separate between-subject and within-subject variance?
  4. What does a pooled residual estimate represent if it combines test and reference residual sums of squares under an equal-variance model?
  5. If occasion errors have positive covariance, does dividing the paired-difference variance by two still estimate their marginal variance? Explain briefly.

Solutions. (1) One response has variance \( \sigma_B^2+\sigma_{WR}^2 \); the covariance of two same-subject reference responses is \( \sigma_B^2 \), under the model’s independence assumptions. (2) Divide by two: \(0.0360/2=0.0180\) log units squared. (3) A single response per subject contains both the subject effect and occasion error, so the observed spread combines them rather than providing a within-subject comparison. (4) It estimates a common residual variance only if equal residual variances across treatments are appropriate; otherwise it is a pooled combination, not a reference-specific estimate. (5) No. If the errors have covariance \(c>0\), the difference variance is \(2\sigma_{WR}^2-2c\), so dividing by two gives \( \sigma_{WR}^2-c \), which is too small for the marginal occasion-error variance.