Two Different Claims About Basket Effects
Basket trials study treatment effects in several subgroups, or baskets. A central modeling choice is whether the baskets are assumed to have exactly the same underlying treatment effect, or whether their effects may differ but are related. These assumptions are not interchangeable: they change what the model says about heterogeneity and how it predicts an individual basket’s effect.
A shared-effect model assigns one treatment-effect parameter to all baskets. A random-effects model assigns a basket-specific effect to each basket and models those effects as draws from a common distribution. The second model permits genuine variation among baskets; the first does not. This contrast concerns treatment effects, not baseline risks. As in the earlier material on separating baseline risk and treatment-effect variation, baseline differences can be modeled separately.
For clarity, the worked calculations below use continuous treatment-effect estimates in points. Suppose the basket-level estimate \(Y_j\), conditional on its true effect, follows \(Y_j\mid\theta_j \sim N(\theta_j,s_j^2)\), with known sampling standard error \(s_j\). The usual assumptions for these calculations are that the estimates are unbiased for their basket effects, their sampling variances are correctly specified, and their sampling errors are independent across baskets. These assumptions concern the sampling model; they do not establish that the basket effects are identical or normally distributed.
What the Models Imply
Under the shared-effect model, all basket data contribute information about the same \(\theta\). Conditional on \(\theta\), each estimate has likelihood \(Y_j\mid\theta\sim N(\theta,s_j^2)\). The model therefore rules out true effect heterogeneity: observed differences among \(Y_j\) must be explained by sampling variation. The assumption may be reasonable when treatment effects are expected to be sufficiently alike for the trial’s purpose, but it is strong.
Under the random-effects model, each basket has its own \(\theta_j\). Conditional on fixed \(\mu\) and \(\tau\), the prior distribution for a basket effect is \(N(\mu,\tau^2)\). The parameter \(\mu\) describes the center of the modeled effects, while \(\tau\) is measured in the same units as the treatment effect. A large \(\tau\) allows substantial variation; a value near zero makes the model behave more like a common-effect model. In a full Bayesian analysis, \(\mu\) and \(\tau\) can themselves have prior distributions. The simple calculations here condition on specified values to make the distinction transparent.
With fixed \(\mu,\tau\) such that \(\tau>0\), and a normal sampling model, the basket-specific posterior is also normal. Its variance and mean are
When \(\tau=0\), the prior is a point mass at \(\mu\), so \(\theta_j=\mu\) with probability one.
The posterior mean is a precision-weighted average of the basket’s estimate and the distributional center. This is the source of the model’s partial pooling: a basket estimate is informed by the common distribution as well as by its own data. It does not mean all basket effects are equal.
Worked Posterior Calculations
Worked Example: A Shared-Effect Posterior
Suppose a hypothetical trial’s basket data yield a normal likelihood summary \(Y=1.59975\) points with standard error \(0.7071068\) points for a common effect \(\theta\). Use the prior \(\theta\sim N(0,4)\), where the variance is \(4\) square points. This example assumes the common-effect model and a correctly specified normal likelihood.
The likelihood precision is \(1/(0.7071068)^2\approx2\) per square point, and the prior precision is \(1/4=0.25\) per square point. Normal conjugacy gives posterior precision \(2+0.25=2.25\), hence posterior variance \(1/2.25=0.444444\) square points and posterior standard deviation \(0.6666667\) points. The posterior mean is
The posterior is therefore approximately \(N(1.422,0.444444)\). Its normal 95% credible interval is calculated as
Given this model and prior, the posterior probability that the common treatment effect lies in this interval is approximately 0.95. The interval concerns the one effect shared by all baskets; it does not provide separate basket-specific effects.
Worked Example: Basket Effects Under a Random-Effects Model
Consider two hypothetical baskets with estimates \(Y_1=1.0571429\) and \(Y_2=2.2\) points, each with sampling variance \(s_j^2=1\) square point. Use the random-effects distribution \(\theta_j\sim N(1,7/3)\), with fixed center \(\mu=1\) point and variance \(\tau^2=7/3\) square points. The normal sampling model and independent basket sampling errors are assumed.
For each basket, the posterior variance is
Thus the posterior standard deviation is \(\sqrt{0.7}=0.8366600\) points. The posterior means are
Approximate normal 95% posterior intervals use \(1.96\sqrt{0.7}=1.639854\) points. For basket 1, the interval is \(1.040\pm1.639854\), or \((-0.5999,\;2.680)\) points. For basket 2, it is \(1.840\pm1.639854\), or \((0.2001,\;3.480)\) points. These intervals describe uncertainty about each basket’s true effect, conditional on the specified model and hyperparameters. The estimates are pulled toward 1 point, but the model still allows the two true effects to differ.
Worked Example: Comparing Subgroup Predictions on the Same Data
Use the two estimates and sampling variances in the preceding example to compare a shared-effect analysis with that random-effects analysis. For the shared model, use the prior \(\theta\sim N(0,4)\). The two independent estimates each have variance 1, so their combined likelihood precision is \(1+1=2\), and the precision-weighted likelihood estimate is \((1.0571429+2.2)/2=1.62857145\) points.
The shared-model posterior precision is \(2+1/4=2.25\), with variance \(1/2.25=0.444444\) square points. Its mean is
Under this model, the posterior distribution of the true effect in either basket is \(N(1.447619,0.444444)\). In contrast, the random-effects model gave posterior means of 1.040 and 1.840 points for the two baskets. Those differing subgroup estimates are possible because that model assigns each basket its own effect.
Prediction of a future basket’s true effect is different from prediction of a future observed estimate. Under the random-effects model with fixed \(\mu=1\) and \(\tau^2=7/3\), before seeing data from a new basket its true effect has distribution \(N(1,7/3)\). If a future estimate has sampling variance 1, then its predictive variance is \(7/3+1=10/3\) square points, because it includes both between-basket variation and sampling variation. Under the shared-effect model, the new basket’s true effect is the same \(\theta\); its uncertainty is the posterior uncertainty in \(\theta\), not an additional between-basket variance. These predictions answer different questions and depend on their respective model assumptions.
Justification and Model Checking
The random-effects posterior formula follows by multiplying the normal likelihood and normal distribution for \(\theta_j\). Ignoring constants that do not depend on \(\theta_j\), the conditional posterior density is proportional to
Writing the exponent as \(-\frac12[A\theta_j^2-2B\theta_j+\text{constant}]\), where \(A=\frac{1}{s_j^2}+\frac{1}{\tau^2}\) and \(B=\frac{Y_j}{s_j^2}+\frac{\mu}{\tau^2}\), completing the square gives a normal density with variance \(v_j=(1/s_j^2+1/\tau^2)^{-1}\) and mean \(v_j(Y_j/s_j^2+\mu/\tau^2)\), as stated above. This derivation requires the normal sampling model and normal distribution for the basket effect, as well as fixed hyperparameters for this conditional calculation.
Model choice should not be made from the posterior means alone. The earlier material on posterior predictive checks across subgroups and residual patterns that reveal model misfit provides relevant diagnostics. In this comparison, inspect whether the shared-effect model can plausibly account for the observed spread of basket estimates through sampling error. Under a random-effects model, examine posterior uncertainty about heterogeneity and whether its predictive distributions can reproduce the observed subgroup patterns. A fitted model can still be inadequate if the basket effects are not reasonably represented by its assumed distribution, or if the sampling standard errors are wrong.
The principal alternatives make different commitments. A shared-effect model is efficient when effects really are sufficiently alike, but its subgroup predictions can be overconfident if meaningful heterogeneity exists. A random-effects model accommodates variation and produces basket-specific estimates, but its conclusions depend on the distributional form and on assumptions about \(\mu\) and \(\tau\). An independent analysis assigns each basket its own effect without a common distribution; it avoids a shared-distribution assumption but does not use that structure to stabilize subgroup estimates. Which assumption is defensible depends on biological rationale, trial design, and diagnostics, not simply on which model produces narrower intervals.
Common Pitfalls and Limitations
- Reading a shared effect as evidence of homogeneity. A common-effect model assumes there is no true basket-to-basket variation. It does not test or demonstrate that biological effects are identical.
- Calling the random-effects center every basket’s effect. \(\mu\) is the distributional center, not the effect in each subgroup. Basket-specific posterior estimates depend on both their own data and the assumed distribution.
- Ignoring uncertainty in heterogeneity. The worked calculations condition on fixed \(\tau\). When \(\tau\) is estimated, its posterior uncertainty should be propagated into subgroup and predictive uncertainty; treating a poorly known value as fixed can make conclusions too certain.
- Confusing effect prediction with outcome prediction. Predicting a future basket’s true treatment effect includes between-basket variation under the random-effects model. Predicting a future estimate or patient outcome also includes the relevant sampling or patient-level variation.
- Assuming the random-effects model solves every transportability problem. A normal distribution of effects may be inappropriate, and baskets may differ in ways not captured by a single center and heterogeneity scale. Neither model can repair poorly defined subgroups or an unsuitable sampling model.
The comparison is most useful when the scientific question is explicit: is the target a single effect regarded as common across baskets, or are basket-specific effects of interest and expected to vary? The model should match that target and the clinical rationale. Sensitivity to plausible heterogeneity assumptions is especially important when the data contain few baskets, since those data may provide limited information about between-basket variation.
Check Your Understanding
Answer each question, then compare with the brief solutions.
- In one sentence, state the key difference between the shared-effect and random-effects assumptions.
- A random-effects model has \(\mu=2\) points and \(\tau=0\). What does its distribution imply for basket effects?
- For \(Y_j=3\) points, \(s_j^2=1\), \(\mu=2\) points, and \(\tau^2=1\), calculate the conditional posterior mean and variance for \(\theta_j\).
- Why is the predictive variance for a future observed estimate larger than the variance for a future true basket effect under the random-effects model?
Solutions: (1) The shared-effect model sets every basket effect equal; the random-effects model allows basket effects to vary around a distributional center. (2) Since \(\tau=0\), every basket effect equals 2 points with probability one under this model. (3) \(v_j=(1+1)^{-1}=0.5\) square points and \(m_j=0.5(3+2)=2.5\) points. (4) The estimate includes sampling error in addition to variation in the true effect across baskets, so its predictive variance adds the sampling variance to the between-basket variance.