Why Stress-Test the Selection Rule?
A selection rule can look reliable in a balanced example with one common effect and still behave differently when the trial has unequal arm sizes or treatments with genuinely different effects. Shared-control contrasts are also dependent: a favorable fluctuation in the control group affects every contrast in the same direction. Stress-testing makes these features explicit and checks whether the planned selection-and-testing procedure performs as intended across them.
The aim here is not to choose a treatment from one simulated data set. It is to examine a prespecified procedure over repeated hypothetical trials: which arm it selects, how often it detects real effects, and how often it rejects at least one true null hypothesis. The calculations below use three active treatments and a shared control to make these issues concrete.
Model and Dependence from a Shared Control
Suppose patients are independently randomized to a control group and \(m\) active-treatment groups. For this tutorial, assume a continuous endpoint with normally distributed outcomes and a common, known within-arm standard deviation \(\sigma\). The sample mean in group \(j\) is \(\bar{x}_j\), and the treatment–control contrast estimate is \(\hat{\Delta}_j=\bar{x}_j-\bar{x}_C\). Its true effect is \(\Delta_j=\mu_j-\mu_C\). Under these assumptions, \(\hat{\Delta}_j\) has mean \(\Delta_j\) and variance \(\sigma^2(1/n_j+1/n_C)\), where \(n_j\) and \(n_C\) are the treatment and control sample sizes.
The contrast statistics are correlated because their estimates all contain the same control mean. Different treatment-group means are independent, and each is independent of the control mean. Therefore, for two distinct treatments \(i\) and \(j\), the covariance of their contrast estimates is the variance of the shared control mean:
This correlation is positive. With equal treatment-group sizes \(n_T\), it reduces to \(n_T/(n_T+n_C)\). Increasing the control allocation relative to treatment allocations generally reduces the correlation. Unequal treatment sizes produce different correlations for different pairs. The formula assumes a single continuous endpoint with the stated independent-arm model; with multiple correlated endpoints, the endpoint covariance structure must also be represented.
Worked Example: Calculating Correlation with Unequal Arm Sizes
Consider a hypothetical trial with a control group of 100 patients and two active groups of 50 and 150 patients. Assume the common standard deviation is 12 units and independent outcomes across patients. Find the correlation between the two treatment–control contrast statistics.
The covariance of the two contrast estimates is \(\sigma^2/n_C=144/100=1.44\) squared units. Their variances are \(144(1/50+1/100)=4.32\) and \(144(1/150+1/100)=2.40\) squared units. Thus,
The standard deviation cancels from the correlation, so the same value follows directly from the sample-size formula. For comparison, if both treatment groups had 100 patients and the control group had 100, the correlation would be \(100/(100+100)=0.5000\). The unequal allocations change the dependence; they do not make the contrasts independent.
A Selection Rule and Its Multiplicity Protection
One simple procedure selects the treatment with the largest observed contrast and tests that treatment using a Bonferroni-adjusted one-sided p-value. With \(m\) candidate treatments and familywise significance level \(\alpha\), compare each raw p-value with \(\alpha/m\), or report the selected arm’s adjusted p-value \(\min(1,mp)\). In a three-treatment example at \(\alpha=0.05\), the raw-p threshold is \(0.05/3=0.01667\). Bonferroni protection does not require independent tests; this is particularly useful when shared-control contrasts are correlated.
The key guarantee concerns the familywise error rate: the probability of rejecting one or more true null hypotheses. It holds even if only the selected arm is tested, provided every individual p-value is valid under its null and the full family size is used for adjustment.
The second inequality uses validity of each marginal p-value under its true null; it does not assume independent p-values. The argument applies to any subset of true nulls, not only the global null, so the procedure has strong familywise error control under these assumptions. The price is conservatism: Bonferroni does not use the known dependence to improve power.
Worked Example: Adjusting a Selected-Arm Test
In a hypothetical three-treatment trial, one contrast has an estimated benefit of 5 outcome units, with \(n_j=150\), \(n_C=100\), and known \(\sigma=12\). Suppose this is the selected contrast and the prespecified alternative is a positive effect. Calculate its one-sided p-value and Bonferroni-adjusted p-value.
The standard error and test statistic are
The one-sided raw p-value is \(P(Z_{\mathrm{standard}}>3.227)\approx 0.0006244\). Adjusting for all three candidate treatments gives
Because \(0.001873<0.05\), this selected-arm result meets the familywise 0.05 criterion under the stated model and procedure. The adjustment is based on all three candidates, not just on the arm that happened to be selected.
Stress-Testing Unequal Effects and Allocation
A stress test should vary features that can change either the selection probabilities or the operating characteristics of the tests. Unequal true effects matter because selection is more likely to favor the arm with the largest signal, while unequal sample sizes change standard errors and the correlation matrix. A useful simulation grid includes:
- Null configurations: all treatment effects are zero, and partial-null cases in which some effects are zero while others are positive.
- Effect patterns: equal positive effects, one clearly superior treatment, and modest or nearly tied effects.
- Allocation patterns: balanced arms, a larger control group, and unequal treatment-group sizes, while holding total sample size or other design constraints fixed as appropriate.
- Dependence conditions: the correlation induced by each allocation, plus plausible alternative covariance assumptions if the endpoint or analysis model implies them.
For every simulated trial, apply the complete planned rule, including selection and its multiplicity adjustment. Record the selected arm, whether a true effect was detected, and whether any true null was rejected. Under a partial-null configuration, count a false rejection only when a null treatment is declared efficacious. This separates power to detect non-null treatments from familywise error among the true nulls.
Worked Example: Comparing Selection Under Unequal Effects
Consider a hypothetical trial with three treatment groups of sizes 50, 100, and 150, a control group of 100, and known \(\sigma=10\) outcome units. Suppose the observed treatment–control differences are 2, 5, and 4 units, respectively. The corresponding standard errors are \(10\sqrt{1/50+1/100}\), \(10\sqrt{1/100+1/100}\), and \(10\sqrt{1/150+1/100}\).
Numerically, these are \(\sqrt{3}\approx1.732\), \(\sqrt{2}\approx1.414\), and \(\sqrt{1.667}\approx1.291\) outcome units. The \(Z\) statistics are therefore
The largest observed effect and largest \(Z\) statistic are both for treatment 2 in this data set. Its one-sided raw p-value is approximately \(0.000203\), so the three-treatment Bonferroni-adjusted value is approximately \(3(0.000203)=0.000609\). This single hypothetical outcome illustrates the calculation, not the long-run probability of selecting the truly best treatment. To assess that probability, repeat the full process under specified true effects and allocations; one trial cannot establish selection performance.
Simulation Diagnostics, Alternatives, and Limits
Monte Carlo estimates have sampling error. If \(B\) independently simulated trials produce an estimated error rate \(\hat{r}\), its approximate Monte Carlo standard error is
For example, an estimated rate near 0.05 from 10,000 replicates has \(SE_{\mathrm{MC}}\approx\sqrt{0.05(0.95)/10000}=0.00218\). A reported rate of 0.052 is therefore not, by itself, persuasive evidence that a procedure exceeds 0.05. When there are no observed errors, the rate is not proven to be zero; a rough 95% upper bound is \(3/B\). Use enough replicates to distinguish the design tolerance from simulation noise, and report the number of replicates alongside the estimated rate.
Warning signs include error-rate estimates that change materially across repeat runs, a partial-null case that was never simulated, or a simulation that selects the arm but omits the prespecified adjustment. Also check that the simulated allocation, endpoint variance, and analysis calculation match the planned trial. A simulation can verify performance only under the data-generating scenarios it represents. It cannot establish robustness to unmodeled variance differences, missing outcomes, or a misspecified endpoint distribution.
| Approach | Strength | Consideration |
|---|---|---|
| Bonferroni adjustment | Simple and valid under arbitrary dependence when individual p-values are valid | Can be conservative, especially when contrasts are strongly correlated |
| Holm step-down adjustment | Strong familywise control and generally no less powerful than Bonferroni | Requires the set of p-values and their ordered testing steps to be applied as specified |
| Correlation-aware joint test, such as a maximum-statistic procedure | Can use the joint contrast distribution to improve efficiency | Requires a correctly specified or suitably justified joint distribution and calibration |
These alternatives do not remove the need to test null and alternative configurations that reflect the intended design. A correlation-aware method can lose its advantage if its covariance assumptions are wrong. Conversely, a conservative Bonferroni procedure may be a sensible benchmark when dependence is uncertain. Stress tests should report the assumptions and scenarios, rather than presenting one favorable operating characteristic as universal.
Common Pitfalls
- Assuming shared-control tests are independent. The common control mean induces positive covariance. Calculate or model the correlation rather than treating the test statistics as independent.
- Adjusting only for the selected arm. Selection does not erase the other candidates from the testing family. Use the prespecified family size or a valid selection-adjusted method.
- Testing only the global null. Strong control concerns every configuration of true and false nulls. Include partial-null stress scenarios.
- Interpreting power as selection accuracy. A procedure may detect an effect often without often selecting the treatment with the largest true effect. Track these outcomes separately.
- Over-interpreting a small simulated excess. Compare estimated rates with Monte Carlo uncertainty and the design tolerance before calling a procedure anti-conservative.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions below.
- With equal treatment sizes of 80 and a shared control size of 120, what is the correlation between two treatment–control contrasts under the common-variance model?
- Why can a Bonferroni procedure control familywise error when the contrast statistics are correlated?
- In a three-treatment trial, why is it insufficient to simulate only the case in which all three treatment effects are zero?
- For an estimated error rate of 0.04 from 5,000 simulations, calculate the approximate Monte Carlo standard error.
Solutions. (1) The correlation is \(n_T/(n_T+n_C)=80/(80+120)=0.4000\). (2) The union-bound argument limits the probability of any true null p-value being at most \(\alpha/m\) to at most \(|I_0|\alpha/m\leq\alpha\); it does not require independence. (3) Strong control must also hold when only a subset of hypotheses is true, so partial-null configurations must be assessed. (4) \(SE_{\mathrm{MC}}=\sqrt{0.04(0.96)/5000}=\sqrt{0.00000768}\approx0.00277\), or about 0.277 percentage points.