7  Hierarchical Models: How Much to Pool

Subgroups, tumor types in a basket trial, arms of a platform and doses of one drug are all sets of related groups. A set of related groups can be analyzed one group at a time, or lumped into one. A hierarchical model offers a third option, and one number decides where between those two it lands. That number is \(\tau\), the standard deviation of the true group effects around their common mean. It is the amount of difference between groups that the analyst considers plausible before looking at any group’s data.

ImportantRegulatory anchor

FDA, Use of Bayesian Methodology in Clinical Trials of Drug and Biological Products (draft guidance, January 2026) (U.S. Food and Drug Administration 2026). The draft lists borrowing across similar diseases or subtypes among the uses of Bayesian methods, and asks the sponsor to justify the exchangeability assumption and to state the prior on the between-group variability in advance (Sections III.D, III.E and V.F). A draft, not binding. Chapter 4 describes its status.

7.1 Three regimes on one picture

Five groups have observed effects \(-1.2\), \(-0.4\), \(0.1\), \(0.6\) and \(1.5\), each with a standard error of 1. Call an observed effect \(y_j\) and its standard error \(s_j\) for group \(j\). The true effect of group \(j\) is \(\theta_j\), and the hierarchical model says the \(\theta_j\) are themselves scattered around a common mean \(\mu\) with standard deviation \(\tau\):

\[ y_j \mid \theta_j \sim N(\theta_j, s_j^2), \qquad \theta_j \mid \mu, \tau \sim N(\mu, \tau^2). \tag{7.1}\]

The first part is the usual statement that an estimate is its true value plus noise. The second part says how far apart the true values are likely to be. Fix \(\mu\) and \(\tau\) for a moment. Then Bayes’ rule (Chapter 6) gives the estimate of \(\theta_j\) as a weighted average of the group’s own data and the common mean,

\[ \mathbb{E}[\theta_j \mid y_j] = w_j\, y_j + (1 - w_j)\, \mu, \qquad w_j = \frac{1/s_j^2}{1/s_j^2 + 1/\tau^2} = \frac{\tau^2}{\tau^2 + s_j^2}. \tag{7.2}\]

Here \(1/s_j^2\) is the precision of the group’s data (small standard error, high precision), and \(1/\tau^2\) is the precision of the common distribution. The weight \(w_j\) on a group’s own data is its share of the total precision. Replacing a group’s estimate by this average is called shrinkage, because the estimate moves toward the center, and using a weight strictly between 0 and 1 is partial pooling. The two ends have names too: complete pooling (\(w_j = 0\), one shared estimate) and no pooling (\(w_j = 1\), each group alone).

Show the R code
y5 <- c(-1.2, -0.4, 0.1, 0.6, 1.5); s5 <- rep(1, 5)
taus5 <- c(0.001, 0.8, 100); lab5 <- c("tau near 0: complete pooling", "tau = 0.8: partial pooling", "tau = 100: no pooling")
d5 <- do.call(rbind, lapply(seq_along(taus5), function(i) {
  p <- pool(y5, s5, taus5[i])
  data.frame(regime = factor(lab5[i], lab5), group = factor(1:5), raw = y5, pooled = p$mean, mu = p$mu)
}))
ggplot(d5, aes(group)) + geom_hline(aes(yintercept = mu), linetype = 2, colour = "grey50") +
  geom_segment(aes(xend = group, y = raw, yend = pooled), colour = "grey60") +
  geom_point(aes(y = raw), shape = 1, size = 2.5) + geom_point(aes(y = pooled), colour = "#1B9E77", size = 2.5) +
  facet_wrap(~regime) + labs(x = "group", y = "effect") + theme_minimal()
Figure 7.1: Five groups, each with standard error 1, under three values of the between-group standard deviation. Open circles are the observed effects, filled circles the estimates after pooling, and the dashed line is the overall mean. With tau near 0 every group gets the same estimate, with tau large each keeps its own, and in between each is pulled part of the way.

The weight formula says who gets pulled hardest. A group whose data are noisy (large \(s_j\)) has small precision, so its weight \(w_j\) is small and its estimate moves a long way. A group with a tiny standard error barely moves. Figure 7.2 shows the weight as a function of \(\tau\) for three standard errors.

Show the R code
tg <- seq(0, 4, length.out = 200)
dw <- expand.grid(tau = tg, s = c(0.5, 1, 2)); dw$w <- dw$tau^2 / (dw$tau^2 + dw$s^2); dw$s <- factor(dw$s)
ggplot(dw, aes(tau, w, colour = s)) + geom_line(linewidth = 1) + scale_colour_brewer(palette = "Dark2", name = "standard error s") +
  labs(x = expression(tau), y = "weight on the group's own data") + theme_minimal()
Figure 7.2: Weight on a group’s own data, tau^2 / (tau^2 + s^2), against the between-group standard deviation tau, for three group standard errors s. A noisy group (s = 2) needs a large tau before its own data count for much.

Nothing here is specific to trials. The algebra is the same as for a single skeptical prior: put a normal prior with mean 0 and standard deviation \(\tau\) on one treatment effect, and the posterior mean is \(\tau^2/(\tau^2 + s^2)\) times the observed effect, which is Equation 7.2 with \(\mu = 0\). The skeptical-prior standard deviation of Section 22.2.2 is that same \(\tau\): a narrower prior shrinks the single estimate harder toward zero. In a hierarchical model the common mean \(\mu\) is learned from the other groups instead of being set to zero, and \(\tau\) can be learned too, as later sections show.

7.2 Baseball: shrinking toward the grand mean

Efron and Morris (1975) used the batting averages of 18 major-league players after their first 45 times at bat in the 1970 season. The averages range from \(0.400\) to \(0.156\), and the question was how well each early average predicts the player’s average over the rest of the season. The table uses the rounded batting averages in Table 1 of that paper: hits in the first 45 at-bats and the batting average over the remainder of the season.

Show the R code
bb <- data.frame(
  player = c("Clemente", "F. Robinson", "F. Howard", "Johnstone", "Berry", "Spencer", "Kessinger", "L. Alvarado", "Santo",
             "Swoboda", "Unser", "Williams", "Scott", "Petrocelli", "E. Rodriguez", "Campaneris", "Munson", "Alvis"),
  hits = c(18, 17, 16, 15, 14, 14, 13, 12, 11, 11, 10, 10, 10, 10, 10, 9, 8, 7),
  rest = c(.346, .298, .276, .222, .273, .270, .263, .210, .269, .230, .264, .256, .303, .264, .226, .285, .316, .200))
bb$early <- bb$hits / 45
knitr::kable(transform(bb, early = round(early, 3)), col.names = c("Player", "Hits in 45 at-bats", "Rest of season", "Early average"), align = "lrrr")
Table 7.1: Batting data of Efron and Morris (1975, Table 1, 18 players): hits in the first 45 at-bats, the early average, and the average over the rest of the season.
Player Hits in 45 at-bats Rest of season Early average
Clemente 18 0.346 0.400
F. Robinson 17 0.298 0.378
F. Howard 16 0.276 0.356
Johnstone 15 0.222 0.333
Berry 14 0.273 0.311
Spencer 14 0.270 0.311
Kessinger 13 0.263 0.289
L. Alvarado 12 0.210 0.267
Santo 11 0.269 0.244
Swoboda 11 0.230 0.244
Unser 10 0.264 0.222
Williams 10 0.256 0.222
Scott 10 0.303 0.222
Petrocelli 10 0.264 0.222
E. Rodriguez 10 0.226 0.222
Campaneris 9 0.285 0.200
Munson 8 0.316 0.178
Alvis 7 0.200 0.156

A batting average is a proportion. We approximate every player’s standard error by \(\sqrt{\bar y(1-\bar y)/45}\), where \(\bar y\) is the grand mean of the early averages. Treat the 18 early averages as normal with that common standard error, and estimate the spread of true averages from the spread of the observed ones: the observed variance is the true variance \(\tau^2\) plus the noise variance \(s^2\), so \(\hat\tau^2 = \max(0, \operatorname{var}(y) - s^2)\). The shrinkage weight is then Equation 7.2. (Efron and Morris used the James-Stein estimator on an arcsine scale, which gives similar numbers. The version here keeps the raw scale so that the algebra above applies without change.)

Show the R code
gm <- mean(bb$early); s_bb <- sqrt(gm * (1 - gm) / 45)
tau_bb <- sqrt(max(0, var(bb$early) - s_bb^2)); w_bb <- tau_bb^2 / (tau_bb^2 + s_bb^2)
bb$shrunk <- w_bb * bb$early + (1 - w_bb) * gm
sse <- c(raw = sum((bb$early - bb$rest)^2), shrunk = sum((bb$shrunk - bb$rest)^2), grand_mean = sum((gm - bb$rest)^2))
better <- sum(abs(bb$shrunk - bb$rest) < abs(bb$early - bb$rest))

The grand mean of the early averages is 0.265 and the standard error of one average is 0.066. The estimated \(\tau\) is 0.023, much smaller than the noise, so the weight on a player’s own early average is only 0.11. Each player is moved about 89 percent of the way to the grand mean. Figure 7.3 shows the move for each player against the average the player achieved later.

Show the R code
bb$player <- factor(bb$player, bb$player[order(bb$early)])
ggplot(bb, aes(y = player)) + geom_vline(xintercept = gm, linetype = 2, colour = "grey50") +
  geom_segment(aes(x = early, xend = shrunk, yend = player), arrow = arrow(length = unit(0.12, "inches")), colour = "#1B9E77") +
  geom_point(aes(x = early), shape = 1, size = 2.5) + geom_point(aes(x = rest), shape = 4, size = 2.5, colour = "#D95F02", stroke = 1.1) +
  labs(x = "batting average", y = NULL) + theme_minimal()
Figure 7.3: Early-season batting averages (open circles) of 18 players, the shrunken estimates (arrow tips) joined to them by arrows, and the average over the rest of the season (crosses). The dashed line is the grand mean of the early averages.

The squared prediction error summed over the 18 players is 0.086 for the raw early averages and 0.027 for the shrunken ones, a reduction of 69 percent. The shrunken estimate is closer to the rest-of-season average for 14 of 18 players. Using the grand mean for everyone gives 0.028, nearly as good as the shrunken estimates and far better than the raw ones, which says that these 18 players differ little in true ability over 45 at-bats’ worth of evidence, a case where \(\tau\) is small. Shrinkage works because extreme early averages are partly luck, and luck does not repeat.

7.3 Eight schools: tracing the effect of tau

Rubin (1981) analyzed eight randomized experiments of coaching for the SAT-V, one per school. Each reports an estimated coaching effect in points and its standard error, and the standard errors are treated as known. The effects are 28, 8, \(-3\), 7, \(-1\), 1, 18 and 12 with standard errors 15, 10, 16, 11, 9, 11, 10 and 18. School 1 appears to gain 28 points, but its standard error is 15.

Show the R code
y8 <- c(28, 8, -3, 7, -1, 1, 18, 12); s8 <- c(15, 10, 16, 11, 9, 11, 10, 18)
tg8 <- seq(0, 30, length.out = 301)
tr8 <- do.call(rbind, lapply(tg8, function(t) data.frame(tau = t, school = factor(1:8), mean = pool(y8, s8, max(t, 1e-6))$mean)))
ggplot(tr8, aes(tau, mean, colour = school)) + geom_line(linewidth = 0.9) +
  scale_colour_manual(values = colorRampPalette(RColorBrewer::brewer.pal(8, "Dark2"))(8), name = "school") +
  geom_text(data = data.frame(tau = 30, school = factor(1:8), mean = y8), aes(label = school), hjust = -0.6, show.legend = FALSE) +
  scale_x_continuous(expand = expansion(mult = c(0.02, 0.08))) +
  labs(x = expression(tau ~ "(points)"), y = "posterior mean effect (points)") + theme_minimal()
Figure 7.4: Posterior mean of the coaching effect in each of the eight schools as the between-school standard deviation tau runs from 0 to 30. At tau = 0 all eight coincide at the pooled mean; as tau grows each school approaches its own estimate (right-hand labels).

The left edge is complete pooling: every school gets the weighted average of the eight estimates, 7.7 points. The right edge, at \(\tau = 30\), is close to no pooling: school 1 is at 24.1 points, still slightly shrunk from its 28 (no pooling is the limit as \(\tau\) grows without bound). In between, the gaps shrink, and the schools with the largest standard errors (school 8, school 3) move first. Because shrinkage differs by school, the order of the posterior means can change along the way. The figure does not say which value of \(\tau\) is right. That question has an answer in the data, because large differences between estimates, compared with their standard errors, would favor a large \(\tau\). The calculation uses the marginal likelihood of \(\tau\): the probability of the observed estimates after averaging over every \(\theta_j\) and \(\mu\). Multiplying it by a prior for \(\tau\) gives a posterior, here computed on a grid with a half-Cauchy prior (a prior on positive numbers with a heavy right tail, scale 5 points) and a flat prior on \(\mu\).

Show the R code
gr <- seq(0, 40, length.out = 801); dl <- gr[2] - gr[1]
pt8 <- tau_post(y8, s8, gr)
cdf8 <- cumsum(pt8) * dl
q8 <- sapply(c(0.5, 0.9), function(p) gr[which(cdf8 >= p)[1]])
prior8 <- 2 * dcauchy(gr, 0, 5)
ggplot() + geom_line(aes(gr, pt8, linetype = "posterior"), linewidth = 1, colour = "#1B9E77") +
  geom_line(aes(gr, prior8, linetype = "prior"), colour = "grey40") + scale_linetype_manual(values = c(posterior = 1, prior = 2), name = NULL) +
  labs(x = expression(tau ~ "(points)"), y = "density") + theme_minimal()
pm8 <- sapply(seq_along(y8), function(j) sum(sapply(gr, function(t) pool(y8, s8, max(t, 1e-6))$mean[j]) * pt8) * dl)
Figure 7.5: Posterior density of tau for the eight schools (solid) against the half-Cauchy prior with scale 5 (dashed). The data favor small values but do not rule out values above 10.

The posterior of \(\tau\) has median 2.8 and 90th percentile 7.9 points, so the data are compatible with anything from complete pooling to substantial differences. Averaging the school-effect curves in Figure 7.4 with these posterior weights gives the posterior means. School 1 goes from 28 to 9.3 points, and school 3 from -3 to 7. The apparent leader is not far from the pack once its standard error is taken into account. (Averaging only the posterior means is exact for the posterior mean. Intervals need the full distribution.)

7.4 The ulcer trial: four arms, one tau

Novick and Grizzle (1965) analyzed interim data from a trial of four operations for duodenal ulcer. The four operations remove increasing amounts of stomach, and the endpoint used here is dumping syndrome, an adverse effect that becomes more common as more stomach is removed. The calculations use the dumping-syndrome counts published by Grizzle, Starmer and Koch (1969), pooled over four hospitals, which ship with the package as ulcer. Section 11.5 uses them to contrast the traditional and hierarchical analyses of the six pairwise contrasts. Here they show what pooling does to four arms. This unordered hierarchy is a benchmark that deliberately omits the known ordering of the procedures. A primary model should include the extent of resection, with exchangeable residual arm effects if justified. The effect for each arm is the log odds of dumping, with standard error \(\sqrt{1/r + 1/(n - r)}\) for \(r\) cases of dumping among \(n\) patients.

Show the R code
lu <- shrink_logodds(ulcer); yu <- lu$y; su <- sqrt(lu$v)
fu <- shrink_eb_fit(yu, lu$v)
tgu <- seq(0, 1.5, length.out = 151)
opn <- c("drainage", "25% resection", "50% resection", "75% resection")
tru <- do.call(rbind, lapply(tgu, function(t) data.frame(tau = t, arm = factor(opn, opn), mean = pool(yu, su, max(t, 1e-6))$mean)))
ggplot(tru, aes(tau, mean, colour = arm)) + geom_line(linewidth = 0.9) + geom_vline(xintercept = fu$tau, linetype = 2, colour = "grey50") +
  scale_colour_brewer(palette = "Dark2", name = NULL) + labs(x = expression(tau ~ "(log odds)"), y = "log odds of dumping") + theme_minimal()
wu <- pool(yu, su, fu$tau)$weight_own
Figure 7.6: Log odds of dumping for the four operations as the between-arm standard deviation tau varies. The vertical line is the marginal-likelihood estimate of tau. At the estimate each arm is pulled part of the way to the common mean.

The marginal-likelihood estimate of \(\tau\) is 0.196, which gives weights on the arms’ own data of 0.46, 0.47, 0.51, 0.51 in drainage, 25%, 50% and 75% resection order, as in Table 6.4. With a standard error near 0.2 and a \(\tau\) of this size, each arm gives up a large part of its own estimate. Four arms are few, and the estimate of \(\tau\) is itself uncertain, a point taken up below. Section 11.5 asks what this shrinkage does to the contrast between the two extreme operations.

7.5 Basket trials: borrowing across tumor types

A basket trial tests one therapy in several tumor types or biomarker-defined subgroups that share a molecular target. Each basket is small, and the question is which baskets respond. The hierarchical model puts the baskets’ response rates on the log odds scale, \(\operatorname{logit}(p_k) = \theta_k \sim N(\mu, \tau^2)\), and gives \(\mu\) and \(\tau\) priors. The calculations below use \(\mu \sim N(0, 2^2)\) and \(\tau \sim \text{half-normal}(1)\), on the log odds scale. Responses in one basket then inform the others, through exactly the weight of Equation 7.2 (with a binomial likelihood the weights are approximate and no longer have a closed form). The package function borrow_basket_posterior() computes the posterior mean response rate of each basket by numerical integration over \(\mu\) and \(\tau\).

The next chunk shows the mechanism with ten baskets of 30 patients each. In the first scenario nine baskets have 12 responders (40%) and one has 3 (10%). In the second all ten have 12.

Show the R code
a <- borrow_basket_posterior(c(rep(12, 9), 3), rep(30, 10))
b <- borrow_basket_posterior(rep(12, 10), rep(30, 10))
dbk <- data.frame(basket = factor(rep(1:10, 2)), pm = 100 * c(b$means, a$means),
                  scenario = rep(c("all baskets 12/30", "basket 10 has 3/30"), each = 10),
                  raw = 100 * c(rep(12, 10), rep(12, 9), 3) / 30)
ggplot(dbk, aes(basket, pm, colour = scenario, shape = scenario)) + geom_point(size = 2.5) +
  geom_point(aes(y = raw), colour = "grey50", shape = "-", size = 6, show.legend = FALSE) +
  scale_colour_brewer(palette = "Dark2", name = NULL) + labs(x = "basket", y = "posterior mean response rate (%)") + theme_minimal()

Posterior mean response rate of each of ten baskets of 30 patients when all baskets have 12 responders (circles) and when basket 10 has 3 (triangles). Grey dashes are the raw rates.

In the all-equal scenario nothing disagrees, so the model estimates a small \(\tau\) (posterior mean about 0.1 on the log odds scale). Every basket’s posterior mean stays near its observed 40% (the model gives 40%). In the outlier scenario the posterior mean of \(\tau\) is about 0.3. The nine typical baskets are pulled down from 40% to about 38% by the outlier, and the outlier is pulled up from 10% to about 29%. The outlier moves a lot because it has only 30 patients and the model, informed by nine similar baskets, regards a rate of 10% as probably a low draw. If basket 10 really is a non-responding tumor type, the model has overstated its response rate, which is the price of borrowing. Section 20.13 gives the design and regulatory points, and Chapter 21 returns to the master-protocol setting.

7.6 Exchangeability: when pooling is justified

The model Equation 7.1 treats the groups as exchangeable. In plain words, before seeing any data, nothing distinguishes one group from another: if someone relabeled the groups and hid the labels, the analyst’s beliefs about the effects would be unchanged. The true effects are then like draws from one population, and the other groups’ data are relevant to any one group precisely because they come from the same population.

Exchangeability fails when the analyst knows something that sets groups apart. A known effect modifier (a biomarker that predicts response), doses that are ordered so that a higher dose should have a larger effect, a pediatric group where the drug is metabolized differently, or a group enrolled by a different protocol at a different time: in each case the labels carry information. The remedy is to model the known difference (for example a regression on dose or biomarker, with exchangeability for the residuals), or to split the groups into sets that are exchangeable within the set. A hierarchical model that ignores known structure pools groups that should not be pooled, and the estimates of the unusual groups are biased toward the rest. The model can also fail without the analyst knowing it. If one group differs from the others for an unknown reason, the other groups’ data pull its estimate the wrong way, and the next sections quantify this.

7.7 Choosing tau

There are three ways to settle \(\tau\), and they can be combined.

  • Estimate it from the data. Give \(\tau\) a prior and let the data determine its posterior, as in the eight schools. This is the default of a fully Bayesian analysis, and it adapts: when groups agree, the posterior favors small \(\tau\) and pools heavily, and when they disagree it favors large \(\tau\).
  • Fix it by design. The protocol states a value (or a few values) of \(\tau\), from historical information about how much similar groups differ or from a decision about how much borrowing is acceptable. This is the same step as fixing the skeptical-prior standard deviation of Section 22.2.2.
  • Calibrate it by simulation. Choose the prior or the fixed value so that simulated trials, including some in which one group differs, have acceptable false positive rates and power (Chapter 15).

The data speak weakly about \(\tau\) when there are few groups. Figure 7.7 shows the posterior of \(\tau\) averaged over 200 simulated data sets in which the true \(\tau\) is 1 and every group has standard error 1, for 4, 8 and 32 groups.

Show the R code
set.seed(11)
gr2 <- seq(0, 8, length.out = 321); dl2 <- gr2[2] - gr2[1]
avg_post <- function(K, reps = 200) {
  rowMeans(replicate(reps, { th <- rnorm(K, 0, 1); tau_post(th + rnorm(K), rep(1, K), gr2) }))
}
dfg <- do.call(rbind, lapply(c(4, 8, 32), function(K) data.frame(tau = gr2, dens = avg_post(K), K = factor(K, c(4, 8, 32)))))
ggplot(dfg, aes(tau, dens, colour = K)) + geom_line(linewidth = 0.9) + geom_vline(xintercept = 1, linetype = 2, colour = "grey50") +
  geom_line(data = data.frame(tau = gr2, dens = 2 * dcauchy(gr2, 0, 5)), aes(tau, dens), inherit.aes = FALSE, linetype = 3) +
  scale_colour_brewer(palette = "Dark2", name = "groups") + labs(x = expression(tau), y = "average posterior density") + theme_minimal()
sd4 <- sqrt(sum(gr2^2 * dfg$dens[dfg$K == 4]) * dl2 - (sum(gr2 * dfg$dens[dfg$K == 4]) * dl2)^2)
sd32 <- sqrt(sum(gr2^2 * dfg$dens[dfg$K == 32]) * dl2 - (sum(gr2 * dfg$dens[dfg$K == 32]) * dl2)^2)
Figure 7.7: Posterior density of tau averaged over 200 simulated data sets with true tau = 1 (vertical line) and group standard error 1, for 4, 8 and 32 groups, with a half-Cauchy prior of scale 5. With 4 groups the posterior remains broad compared with that for 32 groups.

With 4 groups the standard deviation of the averaged posterior density of \(\tau\) (on this grid, which stops at 8) is 1.36, against 0.4 with 32 groups. In a small trial the prior for \(\tau\) is therefore a main input to the final estimates, and it deserves the sensitivity analysis of Chapter 9. A prior that favors very small \(\tau\) pools aggressively, and one that allows large \(\tau\) lets groups stand alone.

The danger of pooling is measured by the false positive rate of the groups that do not respond. Eight groups have standard error 1. Group 1 has a true effect of 3 and groups 2 to 8 have true effect 0. A group is declared positive if its posterior probability of a positive effect exceeds 0.975. Figure 7.8 shows the false positive rate among the seven null groups for several fixed \(\tau\).

Show the R code
set.seed(5)
K <- 8; reps <- 4000; th <- c(3, rep(0, K - 1)); tgf <- c(0.01, 0.25, 0.5, 1, 2, 4, 10)
Y <- t(apply(matrix(0, reps, K), 1, function(z) th + rnorm(K)))
fp <- sapply(tgf, function(t) {
  mean(apply(Y, 1, function(y) { p <- pool(y, rep(1, K), t); any_fp <- pnorm(p$mean / p$sd)[-1] > 0.975; mean(any_fp) }))
})
ggplot(data.frame(tau = tgf, fp = 100 * fp), aes(tau, fp)) + geom_hline(yintercept = 2.5, linetype = 2, colour = "grey50") +
  geom_line(colour = "#1B9E77", linewidth = 1) + geom_point(colour = "#1B9E77") + scale_x_log10() +
  labs(x = expression("fixed" ~ tau ~ "(log scale)"), y = "false positive rate for null groups (%)") + theme_minimal()
Figure 7.8: False positive rate for the seven null groups (true effect 0) when group 1 has true effect 3, as a function of the fixed tau used in the analysis. A group is called positive if its posterior probability of a positive effect exceeds 0.975. The dashed line is 2.5 percent, the rate with no pooling.

With \(\tau = 0.01\) (nearly complete pooling) the false positive rate for a null group is 17.7 percent, because group 1 drags the common mean up and the null groups follow it. At \(\tau = 1\) it is 1.7 percent, and at \(\tau = 10\) it is 2.7 percent, which is the no-pooling rate of 2.5 percent up to simulation error. The inflation is concentrated at small \(\tau\), where the common mean dominates each group’s estimate. The price of borrowing shows in this figure: when groups really are exchangeable, pooling gains precision, and when one differs it can make false positives for the others more frequent.

A reviewer of a hierarchical design will ask three things. Was the model, including the prior on \(\tau\) (or the fixed \(\tau\)), prespecified? How do the conclusions change as \(\tau\) runs over a range, as in the traces above? What are the simulated false positive rates when one group differs from the others, as in the last figure? A design that answers all three is more convincing than one that reports a single posterior.

Key points

  • The between-group standard deviation \(\tau\) controls pooling. With \(\tau\) near 0 all groups share one estimate, with \(\tau\) very large each group stands alone, and in between each is pulled toward the overall mean.
  • In the normal model with \(\tau\) held fixed, the weight on a group’s own data is its precision divided by its precision plus \(1/\tau^2\). With a binomial likelihood or an estimated \(\tau\) the weights are approximate. Small or noisy groups are pulled more than large, precise ones.
  • Shrinkage improves prediction when true differences are small relative to noise (the batting averages). It is the same algebra as a skeptical prior with standard deviation \(\tau\).
  • Exchangeability means that nothing known distinguishes the groups before the data. Known effect modifiers, ordered doses and different populations break it, and should be modeled.
  • \(\tau\) can be estimated, fixed by the protocol, or calibrated by simulation. With few groups its prior drives the answer, so report sensitivity over a range of \(\tau\).
  • Pooling can inflate false positive rates under heterogeneous effects. Simulate scenarios in which one group differs and report that rate.
NoteDiscussion questions
  1. In the eight-schools data, school 8 has a standard error of 18 and school 5 has 9. At the same \(\tau\), which is pulled further toward the pooled mean, in proportion to its distance from it, and why?
  2. A basket trial has three tumor types with 10 patients each. What would you ask for in the protocol about the prior on \(\tau\), and why?
  3. A subgroup analysis has two subgroups defined by a biomarker that is known to predict response. Is exchangeability reasonable? What would you model instead?
  4. The weight on a group’s own data is \(\tau^2/(\tau^2 + s^2)\). If a trial doubles its sample size in every group, how does the weight change at a fixed \(\tau\)?
  5. A sponsor wants to fix \(\tau\) at the value that gave the best-looking result. What is wrong with this, and how would you detect it?