Why Selection Must Be Part of the Randomization
In a multi-arm multi-stage trial, the arm whose effect is ultimately reported may have been chosen because its interim results looked promising. An estimate computed for that arm as if it had been fixed in advance ignores a key feature of the design: the same random assignment that generated the outcomes also helped determine which arm was selected. A randomization-based analysis addresses this by reproducing both the trial’s assignment mechanism and its selection rule.
The result is not automatically a correction for every form of selection bias. Exact randomization calculations require a clearly specified randomization mechanism and, for direct imputation of outcomes under candidate effects, a sharp potential-outcome model. They are valuable because their assumptions are explicit and because the selection step can be represented directly rather than approximated by resampling observed records.
Let \(Z_i\) denote the treatment assigned to participant \(i\), with \(0\) denoting control and \(j=1,\ldots,J\) denoting active arms. A complete assignment path includes assignments at every stage and any randomization-dependent stopping or continuation decisions. Let \(\mathcal{A}\) be the set of paths that could have occurred under the protocol, and let \(\pi(a)\) be the probability of path \(a\). Equal-probability paths are common in small examples, but the general calculation must use the actual probabilities \(\pi(a)\).
The selection rule is a function of the data available at the relevant decision point. It may choose an active arm for continuation, drop an arm for futility, or stop an arm for efficacy. For each candidate assignment path, the analysis must generate the outcomes that would have been observed on that path, apply the rule at the same point in the trial, and calculate the statistic for the arm selected on that path. Reassigning treatment labels while leaving the observed selected arm fixed does not reproduce this procedure.
Sharp Effects and Outcome Imputation
A transparent starting point is a sharp additive treatment-effect model. For each participant \(i\), let \(Y_i(j)\) be the outcome that would be observed under treatment \(j\). For candidate effects \(\boldsymbol{\theta}=(\theta_1,\ldots,\theta_J)\), the sharp model states that \(Y_i(j)=Y_i(0)+\theta_j\) for every participant and every active arm. Thus the treatment effect is constant across participants for each arm. This assumption makes it possible to recover each participant’s control outcome from the observed outcome and the assigned treatment.
The imputation reproduces the observed outcomes under the actual assignment: when \(a_i=Z_i\), the imputed value is \(Y_i^{\mathrm{obs}}\). For other assignments it supplies the outcomes implied by the candidate sharp model. The randomization distribution is then formed over the paths in \(\mathcal{A}\), weighted by \(\pi(a)\). If a path contains stage-specific assignments, the imputation and selection rule must follow the protocol’s timing: only outcomes available at an interim decision may influence that decision.
This construction differs from a bootstrap. A bootstrap resamples observed data according to a sampling scheme; a randomization calculation varies assignments according to the design. It also differs from a permutation that freely shuffles labels: only assignments the trial could actually have generated belong in \(\mathcal{A}\).
A Small Exact Example
Worked Example: Replaying a Selection Rule
Consider a deliberately small hypothetical trial with three participants, one assigned to control and one to each of active arms A and B. All six permutations of the three treatment labels are equally likely. The rule selects whichever active arm has the larger observed outcome minus the control outcome; the selected statistic \(T\) is that larger difference. Suppose the observed outcomes are 1, 4, and 7 units, assigned respectively to control, A, and B. Arm B is selected and \(T_{\mathrm{obs}}=7-1=6\) units.
First test the sharp global null \(\theta_A=\theta_B=0\). Under this null, the three outcomes stay fixed as labels are permuted. If the outcome 1 is assigned to control, the selected difference is \(7-1=6\), regardless of which remaining outcome receives A or B. If 4 is control, the selected difference is \(7-4=3\). If 7 is control, it is \(4-7=-3\). Each case occurs in two of the six equally likely assignments. The exact randomization distribution therefore has values 6, 6, 3, 3, \(-3\), and \(-3\) units.
For the prespecified upper-tail test, the exact p-value is \(P(T\geq T_{\mathrm{obs}})=2/6=0.3333\). This is the probability, under the sharp global null and the stated randomization, of a selected difference at least as large as 6 units. It is not the probability that the null is true. The example is intentionally tiny; the coarse p-value reflects its limited number of possible assignments.
Testing Candidate Effects and Inverting the Test
A sharp null need not set every active effect to zero. To test a candidate effect vector, impute the control outcomes under that vector, enumerate or sample valid assignment paths, and replay the selection rule. For a scalar selected-effect analysis, a prespecified statistic might be the selected contrast minus its candidate effect. A two-sided test can compare the absolute observed deviation with the absolute deviations across the randomization distribution. The statistic and tail convention must be specified before examining the resulting p-value; different choices can give different tests.
Worked Example: Testing a Candidate Common Effect
Continue the hypothetical example, now testing the sharp candidate \(\theta_A=\theta_B=2\) units. Under the observed assignment, the imputed control outcomes are 1 for the control participant, \(4-2=2\) for the participant assigned to A, and \(7-2=5\) for the participant assigned to B. Thus the three imputed control outcomes are 1, 2, and 5 units.
For each possible assignment, the selected statistic is the larger of the two active outcomes minus the control outcome. With candidate effects of 2 units, the possible control outcomes give the following statistics: if the control outcome is 1, the statistic is \((5+2)-1=6\); if it is 2, the statistic is \((5+2)-2=5\); if it is 5, the statistic is \((2+2)-5=-1\). Each occurs twice among the six assignments.
The observed selected effect is 6 units, so its deviation from the candidate effect is \(6-2=4\) units. Using the prespecified two-sided statistic \(|T-2|\), the six deviations are 4, 4, 3, 3, 3, and 3 units. The exact two-sided p-value is \(2/6=0.3333\), since only the first two deviations are at least 4 units. This calculation tests the sharp candidate model; it does not establish that every participant’s true effect equals 2 units.
Repeating the test over candidate values and retaining those not rejected gives a randomization-based confidence set by test inversion. For example, a 95% confidence set retains the candidates whose prespecified exact test has p-value greater than 0.05. In a small design this set may be wide, discrete, or even disconnected. A confidence set obtained this way is not necessarily an ordinary interval, and its coverage interpretation follows the test and assumptions used in the inversion.
The logic of exactness is short but important. Under a true sharp candidate model, all potential outcomes needed for each allowed assignment are known after imputation. The actual assignment path is drawn according to the known design probabilities. Therefore the statistic computed from the actual path has the distribution generated by those same probabilities and the same selection rule. Comparing it with that distribution controls the randomization-test error rate for the sharp null, apart from any discreteness or Monte Carlo approximation.
Here the probability is over the trial’s random assignment when the sharp candidate \(\boldsymbol{\theta}\) is true; the inequality allows for conservative tests caused by discrete assignment distributions. Test inversion turns this collection of tests into a confidence set. It does not make a sharp constant-effect model appropriate when effects vary across participants.
Selection Conditioning, Alternatives, and Diagnostics
There are two distinct questions an analysis may ask. An unconditional randomization distribution replays the entire design, including which arm is selected, and provides inference for the procedure as a whole. A conditional analysis may restrict attention to assignment paths that produce the same selection event as observed. That restriction changes the reference distribution and can leave very few paths, or none under some candidate values. Conditioning can be appropriate for a stated conditional target, but it is not achieved merely by holding the observed selected arm fixed while permuting outcomes.
Randomization-based methods are especially attractive when the assignment probabilities and decision algorithm are fully documented. Model-based selective likelihood methods can use outcome-distribution assumptions to obtain more detailed inference; bootstrap approaches can be useful for more complex estimators but must reproduce the design and selection adequately. These methods answer related but not identical questions. Randomization inference is exact for its sharp null under the actual design, whereas it does not by itself provide exact inference for a general average treatment effect under arbitrary effect heterogeneity.
Diagnostics begin with the trial record, not a histogram of the resampled statistics. Verify that each generated path obeys stage sizes, allocation probabilities, stratification, stopping boundaries, and the information available at each decision. Check that selection is reapplied identically on every path and that ties are handled as specified in the protocol. If Monte Carlo sampling replaces full enumeration, report the number of sampled paths, use the correct path probabilities, and assess simulation error in the estimated tail probability.
A frequent failure is to permute the observed outcomes among all treatment labels and then calculate the contrast for the arm selected in the actual trial. This breaks the link between assignments and selection: under most permuted datasets, a different arm would have been selected. The correction is to generate outcomes under each allowable assignment and rerun the selection rule, including any interim stopping or continuation decision. A second limitation is lack of support: when few paths can lead to the observed selection event, conditional results may be unstable or uninformative. No computational refinement can create assignment information that the design did not provide.
List the allowed assignment paths and their probabilities, including stage transitions and stopping rules.
For sharp-effect imputation, specify candidate effects and define the selected-arm statistic and tail rule.
Recover control outcomes under the candidate, generate outcomes along each allowed path, and apply the selection rule at the protocol’s decision points.
Compare the observed statistic with its randomization distribution; invert the tests if a confidence set is required, and state the sharp-model limitation.
Check Your Understanding
Try each question, then compare your reasoning with the solutions.
- Why is it generally invalid to permute treatment labels but keep the observed selected arm fixed?
- In a sharp additive model, what is the imputed control outcome for a participant observed with outcome 12 units on active treatment \(j\), when the candidate effect is 3 units?
- A randomization test uses 40 equally likely paths, and 5 have a statistic at least as extreme as observed under its prespecified tail rule. What is the exact p-value?
- What is the main limitation of sharp-effect imputation when participant treatment effects are heterogeneous?
Solutions. (1) The selection rule would often choose a different arm under the permuted outcomes, so fixing the observed arm fails to reproduce the trial procedure. Reapply the rule for every allowable path. (2) The imputed control outcome is \(12-3=9\) units. (3) The exact p-value is \(5/40=0.125\), using the stated tail rule and equal path probabilities. (4) The imputation assumes the candidate effect applies to every participant; under heterogeneity, observed outcomes do not reveal all missing potential outcomes from one scalar candidate, so this exact sharp-null calculation does not automatically give exact inference for an average effect.