Tutorials › Bayesian Clinical Trials › Calibrating Heterogeneity Priors Against Plausible Effects

Hierarchical Models and Basket Trials · Tutorial 485 of 696

Calibrating Heterogeneity Priors Against Plausible Effects

You will learn to calibrate candidate heterogeneity priors by translating their scales into clinically interpretable ranges of subgroup effects and differences.

Advanced 12 min read

What You'll Learn

  • Define the random-effects model and distinguish subgroup variation from uncertainty in the overall effect.
  • Translate a heterogeneity standard deviation into conditional ranges for subgroup deviations and pairwise differences.
  • Interpret the scale of a half-normal prior on heterogeneity using its quantiles.
  • Calibrate candidate scales against plausible basket differences on log-odds-ratio and standardized-outcome scales.
  • Check prior implications through simulation and recognize when a stated range is not a prior probability bound.

Why Calibrate a Heterogeneity Prior?

In a basket trial, the heterogeneity parameter controls how much treatment effects may differ across subgroups. A prior scale for this parameter is therefore consequential: a scale that permits implausibly large differences can make the model inconsistent with clinical knowledge, while an overly restrictive scale can make meaningful differences difficult to represent. The scale itself is not usually interpretable in clinical units. Calibration translates it into effects and contrasts that are.

The task is not to declare a particular amount of heterogeneity “correct” from a formula alone. It is to choose candidate prior scales, work out what subgroup differences they imply, and assess whether those differences are compatible with clinical understanding of the baskets and endpoint. The calculations below concern prior implications, not the posterior estimates after observing trial data.

Model and Effect Scale

Let \(\theta_j\) be the treatment effect in basket \(j\), measured on a specified scale, and let \(\mu\) be the mean treatment effect across the basket hierarchy. A normal random-effects model is

$$ \theta_j=\mu+u_j,\qquad u_j\mid\tau\sim N(0,\tau^2). $$

Conditional on \(\mu\) and \(\tau\), the basket deviations \(u_j\) are assumed independent and identically distributed. The parameter \(\tau\geq 0\) is the between-basket standard deviation on the treatment-effect scale. It is not the standard error of an estimated basket effect, nor does it describe patient-level variation. The model also assumes that the baskets are sufficiently coherent for this common distribution of deviations to be meaningful.

The effect scale must be fixed before interpreting \(\tau\). For example, a binary endpoint might use a log odds ratio, a time-to-event endpoint a log hazard ratio, and a continuous endpoint a difference in means or a standardized mean difference. A numerical standard deviation has different clinical meanings on each scale. When effects are expressed as log odds ratios, exponentiation converts a difference in effects into a ratio of odds ratios.

Definition: In this model, \(\tau\) is the conditional standard deviation of basket-specific treatment effects around \(\mu\). A prior for \(\tau\) describes uncertainty about the degree of between-basket variation; a prior scale for \(\tau\) is not itself a bound on any basket effect or contrast.

Translate a Heterogeneity Value Into Effect Ranges

For a fixed value of \(\tau\), approximately 95% of the normal distribution of basket deviations lies within \(1.96\tau\) of zero. Thus a conditional central 95% range for a basket effect is approximately \(\mu\pm1.96\tau\). This is a range for an individual basket deviation around the hierarchy mean; it does not say that all baskets in a trial with many baskets will lie inside it.

A pairwise comparison between baskets is often more directly relevant to clinical plausibility. For two distinct baskets \(j\) and \(k\), define \(\Delta_{jk}=\theta_j-\theta_k\). Because the common mean cancels, this contrast describes the difference in their treatment effects, not the difference between either treatment effect and zero.

$$ \Delta_{jk}=u_j-u_k,\qquad \Delta_{jk}\mid\tau\sim N(0,2\tau^2). $$

The variance follows from conditional independence: \(\operatorname{Var}(u_j-u_k\mid\tau)=\operatorname{Var}(u_j\mid\tau)+\operatorname{Var}(u_k\mid\tau)=2\tau^2\). Consequently, a conditional central 95% range for a pairwise difference is approximately

$$ -1.96\sqrt{2}\tau\ \text{ to }\ 1.96\sqrt{2}\tau. $$

This calculation is a useful calibration tool: if clinicians judge differences larger than \(D\) on the chosen effect scale to be implausible, compare \(D\) with \(1.96\sqrt{2}\tau\). Conversely, a value of \(\tau\) for which this half-width equals \(D\) is \(D/(1.96\sqrt{2})\). This is a conditional normal range for a specified \(\tau\), not a guarantee about every pair of baskets.

Worked Example: Interpreting a Fixed Scale on the Log-Odds-Ratio Scale

Suppose treatment effects are log odds ratios, and a candidate heterogeneity value is \(\tau=0.1764\). Interpret the conditional central 95% ranges for one basket’s deviation from \(\mu\) and for a pairwise difference.

For one basket, the half-width around \(\mu\) is

$$ 1.96(0.1764)=0.345744\approx0.3457. $$

The basket effect is therefore within approximately \(0.3457\) log-odds-ratio units of \(\mu\) in the central 95% of the conditional distribution. Expressed as an odds-ratio multiplier relative to \(\exp(\mu)\), the factor at this endpoint is \(\exp(0.345744)\approx1.413\). The corresponding lower multiplier is \(\exp(-0.345744)\approx0.7077\).

For two baskets, the conditional pairwise half-width is

$$ 1.96\sqrt{2}(0.1764)\approx0.4890. $$

Exponentiating gives \(\exp(0.4890)\approx1.631\). Thus the central 95% conditional range for the ratio of the two baskets’ odds ratios is approximately \(1/1.631\) to \(1.631\), or \(0.6131\) to \(1.631\). This is a statement about pairwise differences conditional on this value of \(\tau\), not a 95% probability statement about the unknown treatment effects after observing data.

Calibrating a Prior on \(\tau\)

In many analyses \(\tau\) is unknown and receives a prior distribution. For example, a half-normal prior with scale \(A\) is defined as the distribution of the absolute value of a normal random variable with mean zero and standard deviation \(A\):

$$ \tau\sim\operatorname{HalfNormal}(A),\qquad \tau=|Z|,\quad Z\sim N(0,A^2). $$

Here \(A\) is the scale of the prior distribution on \(\tau\); it is not the heterogeneity standard deviation itself. To interpret \(A\), inspect useful quantiles of the prior for \(\tau\), then translate those values into conditional effect ranges. For a half-normal prior, the 90th percentile of \(\tau\) is approximately \(1.645A\), since \(P(\tau\leq t)=2\Phi(t/A)-1\). The resulting effect range is conditional on \(\tau\) being at that quantile. It is not a 95% prior-predictive interval for treatment effects.

Worked Example: Comparing Two Half-Normal Scales

Suppose a trial uses a log odds ratio and considers \(\tau\sim\operatorname{HalfNormal}(A)\) with either \(A=0.10\) or \(A=0.20\). Compare the conditional pairwise ranges at the 90th percentile of each prior for \(\tau\).

For \(A=0.10\), the 90th percentile is \(1.645(0.10)=0.1645\). At that value, the pairwise half-width is

$$ 1.96\sqrt{2}(0.1645)\approx0.4560. $$

On the odds-ratio scale, this corresponds to a multiplicative factor of \(\exp(0.4559)\approx1.578\) in either direction. The conditional central 95% range for the ratio of two baskets’ odds ratios is therefore approximately \(1/1.578\) to \(1.578\).

For \(A=0.20\), the 90th percentile is \(1.645(0.20)=0.3290\), giving

$$ 1.96\sqrt{2}(0.3290)\approx0.9119,\qquad \exp(0.9118)\approx2.489. $$

At this value of \(\tau\), the corresponding conditional central 95% range for the ratio of odds ratios is approximately \(1/2.489\) to \(2.489\). The larger prior scale permits substantially wider pairwise differences. These calculations compare conditional ranges at prior quantiles; they do not make either range an overall 95% prior-predictive bound.

Calibrate Against a Clinical Difference

Clinical elicitation is often clearest when expressed as a pairwise difference that would be considered large but still plausible. Suppose the largest clinically plausible absolute pairwise difference is \(D\) on the model’s effect scale. A value of \(\tau\) whose conditional central 95% pairwise half-width equals \(D\) is

$$ \tau=\frac{D}{1.96\sqrt{2}}. $$

This calculation supplies a reference point for choosing a prior scale. It does not automatically identify the right prior: the whole distribution of \(\tau\) matters, and a prior can assign substantial probability both below and above this reference value.

Worked Example: Checking a Plausible Difference on a Standardized Scale

Suppose a continuous endpoint is analyzed using standardized mean differences, so one effect unit equals one outcome standard deviation. Clinical experts consider a pairwise basket difference of \(0.50\) standard deviations large but plausible. Compare fixed values \(\tau=0.12\) and \(\tau=0.22\) with this benchmark.

For \(\tau=0.12\), the conditional pairwise half-width is

$$ 1.96\sqrt{2}(0.12)\approx0.3326 $$

standard deviations. This conditional central 95% range is narrower than the \(0.50\)-standard-deviation benchmark. For \(\tau=0.22\), the half-width is

$$ 1.96\sqrt{2}(0.22)\approx0.6098 $$

standard deviations, wider than the benchmark. Solving for the value that makes the half-width exactly \(0.50\) gives

$$ \tau=\frac{0.50}{1.96\sqrt{2}}\approx0.1804. $$

Thus \(0.1804\) is a useful reference value for this particular benchmark and effect scale. It is not a universal recommendation: the clinical meaning of \(0.50\) standard deviations depends on the endpoint, and a prior on \(\tau\) must still be assessed across its distribution.

Justification and Prior-Predictive Checks

The pairwise formula follows directly from the model. Conditional on \(\tau\), the deviations in two distinct baskets are independent with mean zero and variance \(\tau^2\). Their difference has mean zero and variance \(2\tau^2\), so for \(\tau>0\), standardizing gives \(\Delta_{jk}/(\sqrt{2}\tau)\sim N(0,1)\). When \(\tau=0\), \(\Delta_{jk}=0\) with probability one. The normal central 95% quantiles are approximately \(-1.96\) and \(1.96\), which yields the stated conditional range. The common mean \(\mu\) does not appear because it cancels in the contrast.

A useful check for a prior distribution on \(\tau\) is prior-predictive simulation: draw \(\tau\) from its prior, draw basket deviations from the hierarchical model, and examine the resulting effects and pairwise contrasts on the clinical scale. For each simulated draw, transform log odds ratios or log hazard ratios back to the ratio scale when that is how clinicians naturally describe differences. Check quantiles and the frequency of effects or contrasts beyond prespecified plausibility thresholds. This assesses the implications of the entire prior, rather than just one selected value of \(\tau\).

For a half-normal prior with scale \(A\), the conditional variance of a pairwise contrast is \(2\tau^2\). Since \(E(\tau^2)=A^2\) for this prior, the prior-predictive variance of that contrast is \(2A^2\), and its standard deviation is \(\sqrt{2}A\). But the prior-predictive contrast is a mixture of normal distributions, not generally a single normal distribution. Multiplying \(\sqrt{2}A\) by 1.96 therefore does not give its exact central 95% interval.

The number of baskets also matters when interpreting ranges. A conditional central 95% range for one basket deviation does not imply that all baskets lie inside that range, and a pairwise range for one selected pair does not bound the most extreme difference among many pairs. If the clinical concern is an extreme basket or the largest difference across the planned baskets, simulate the full set of basket effects under the proposed prior and assess that quantity directly.

Choosing Among Calibration Approaches

Different approaches answer different questions. A fixed \(\tau\) makes the implied conditional ranges direct to calculate, but treats the degree of heterogeneity as known. A prior such as a half-normal allows uncertainty about \(\tau\); its scale must be interpreted through the prior’s quantiles and predictive implications. A prior-predictive simulation handles the complete hierarchy and can assess extremes across all baskets, but it requires explicit choices about the effect scale and the clinical thresholds used to judge plausibility.

A common-effect model corresponds to \(\tau=0\), which permits no between-basket variation in this hierarchy. It may be a useful reference point, but it is not a calibration of a positive heterogeneity prior. Conversely, an interval such as \(\mu\pm1.96\tau\) is a conditional distributional range, not a bound on the possible effects. The appropriate approach depends on whether the clinical question concerns a typical basket, a pair of baskets, or the most extreme difference across a collection.

Common Mistakes and Limitations

  • Treating the prior scale as an effect bound. A half-normal scale \(A\) is not a 95% maximum for \(\tau\), and neither \(A\) nor \(\tau\) is itself a maximum effect difference. Use prior quantiles and translate them through the model.
  • Confusing individual and pairwise ranges. A single basket’s deviation has standard deviation \(\tau\); a difference between two independent basket deviations has standard deviation \(\sqrt{2}\tau\). Use the quantity that matches the clinical question.
  • Ignoring the effect scale. A value of \(\tau\) on the log odds-ratio scale cannot be read as a difference in percentage points. Transform it or calibrate directly on an appropriate scale.
  • Calling a conditional range a prior-predictive interval. A normal range calculated at a fixed \(\tau\) does not integrate over uncertainty in \(\tau\). Use simulation or an appropriate mixture calculation for prior-predictive statements.
  • Assuming all baskets fall within a typical range. The chance that at least one basket or pair is more extreme increases with the number of baskets. Assess the full collection if extremes are the concern.

Calibration depends on the quality of the clinical judgments and on whether the hierarchical normal model is a reasonable representation of basket effects. If baskets have distinct biological mechanisms, a single exchangeable distribution may not be appropriate even when a prior scale appears numerically plausible. Calibration cannot repair a poorly defined subgroup structure or an unsuitable effect model.

Key takeaway: Choose heterogeneity-prior scales by translating them into conditional subgroup and pairwise ranges on the clinical effect scale, then checking the full prior-predictive implications. State whether a range is conditional on a fixed \(\tau\) or integrates over the prior for \(\tau\).

Check Your Understanding

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

  1. For two baskets under the normal random-effects model, what is the conditional standard deviation of their treatment-effect difference?
  2. If \(\tau=0.10\) on a log odds-ratio scale, calculate the conditional central 95% pairwise half-width and its multiplicative odds-ratio factor.
  3. A half-normal prior has scale \(A=0.15\). Approximately what is its 90th percentile for \(\tau\), and what is the conditional pairwise 95% half-width at that value?
  4. Explain why a conditional 95% range at the 90th percentile of a prior for \(\tau\) is not an overall 95% prior-predictive interval.

Solutions. 1. The difference has variance \(2\tau^2\), so its standard deviation is \(\sqrt{2}\tau\). 2. The half-width is \(1.96\sqrt{2}(0.10)\approx0.2772\) log-odds-ratio units. The multiplicative factor is \(\exp(0.2772)\approx1.319\). 3. The 90th percentile is \(1.645(0.15)=0.2468\). Its conditional pairwise half-width is \(1.96\sqrt{2}(0.2468)\approx0.6841\). 4. The calculation conditions on one particular value of \(\tau\), and that value is only a quantile of its prior. An overall prior-predictive interval must account for the distribution of \(\tau\) and the resulting mixture of conditional effect distributions.

Clinical Biostats