Why Stress-Test the Allocation Model?
A response-adaptive design uses accumulating response information to change the probability of assigning later participants to each treatment. This can direct more participants to a treatment that appears beneficial, but it also makes the design depend on the model or prediction rule that turns response information into allocation probabilities. If that working response model is wrong, the trial may allocate more participants to a treatment that is not beneficial, miss important differences between patient subgroups, or produce inference with poor operating characteristics.
A stress test asks what happens when the response model driving allocation differs from the mechanism that generates outcomes. The aim is not to declare one model universally correct. It is to identify which conclusions about participant outcomes, allocation, and inference are sensitive to plausible departures from the model. The simulation principles established in the earlier material on building data-generating mechanisms and matching trial conditions apply: specify the true mechanism independently of the allocation rule, and change the feature being stress-tested while holding other conditions fixed.
Specify the Two Models Separately
For participant \(i\), let \(A_i\in\{0,1\}\) denote the assigned treatment, \(X_i\) the participant’s covariates, and \(Y_i\) the observed outcome. For a binary outcome, write \(\mu_a(X_i)=P(Y_i=1\mid A_i=a,X_i)\) for the true response probability under treatment \(a\). The working model supplies predictions \(m_a(X_i)\), which the allocation algorithm may use to choose the probability \(q_i=P(A_i=1\mid\mathcal H_{i-1},X_i)\), where \(\mathcal H_{i-1}\) denotes the trial history available before participant \(i\) is randomized.
In a simulation, the true outcome mechanism generates \(Y_i\), while the working model affects \(q_i\). These roles should not be conflated. A useful stress test specifies both explicitly, including the assumed covariate distribution, outcome distribution, treatment-effect pattern, and allocation rule. If the algorithm refits the working model as outcomes accrue, specify that updating procedure too: an initially wrong prediction may improve with data, remain biased, or become more extreme.
Misspecification can take several forms. A model might omit a treatment-by-subgroup interaction, assume a constant effect when effects vary with a covariate, use an incorrect link or functional form, or ignore a time trend. Choose departures that are plausible for the application and consequential for the rule’s decisions. A model can be wrong in a way that barely affects assignment, or only slightly wrong in prediction while repeatedly pushing assignments in an unhelpful direction.
Worked Example: A Wrong Overall Treatment Ranking
Consider a hypothetical binary-outcome trial. Suppose the working model predicts \(m_1=0.70\) and \(m_0=0.55\) for every participant. For illustration, the allocation rule is \(q_i=\min(0.90,\max(0.10,0.50+2(m_1-m_0)))\). The predictions give
Thus, absent other changes in the rule, 80% of participants are assigned to treatment 1. Now let the true outcome probabilities be \(\mu_1=0.45\) and \(\mu_0=0.60\) for every participant. The expected success probability under the adaptive allocation is
With equal allocation, the corresponding expected success probability is \(0.50(0.45)+0.50(0.60)=0.525\). The difference is \(0.48-0.525=-0.045\), or 4.5 percentage points fewer successes per participant on average under these assumptions. In a trial of 1,000 participants with these same probabilities and allocation fractions, the expected treatment-1 allocation is 800 rather than 500, while expected successes are 480 rather than 525. This calculation isolates the consequence of the erroneous ranking; it is not a claim about an actual study.
Misspecification Can Hide in Subgroups
A working model may correctly predict an average response yet miss the treatment-effect pattern that matters for individual assignment. For example, a model with a common treatment effect may ignore that treatment 1 benefits one subgroup but harms another. The overall marginal effect alone does not reveal whether the model’s assignments are sensible for each subgroup.
Worked Example: An Omitted Treatment-by-Subgroup Interaction
Suppose two equally common subgroups have the following true success probabilities: in subgroup A, \(\mu_1=0.80\) and \(\mu_0=0.70\); in subgroup B, \(\mu_1=0.20\) and \(\mu_0=0.50\). The true treatment effects are \(0.10\) in A and \(-0.30\) in B. A working model omits subgroup and predicts the same apparent benefit for everyone, leading to \(q_i=0.70\) in both groups.
The expected success probability in subgroup A is \(0.70(0.80)+0.30(0.70)=0.56+0.21=0.77\). In subgroup B it is \(0.70(0.20)+0.30(0.50)=0.14+0.15=0.29\). Averaging the equally frequent groups gives \(0.50(0.77)+0.50(0.29)=0.53\). Equal randomization instead gives subgroup success probabilities \(0.75\) and \(0.35\), and an overall probability of \(0.50(0.75)+0.50(0.35)=0.55\). Under these stipulated probabilities, the working model’s allocation reduces expected success by 0.02 per participant relative to equal allocation, while directing more participants to treatment 1 in both groups.
This scenario is a targeted stress test: it asks whether omission of effect modification can lead the rule to overallocate the harmful treatment in subgroup B. It also shows why overall allocation fractions and average success alone may be insufficient summaries. Record subgroup-specific allocation and outcomes when subgroup effects are part of the true mechanism.
Keep Allocation Error Separate from Inference
A wrong working response model does not automatically imply that every treatment-effect estimator is biased. The consequences depend on the allocation probabilities and the analysis procedure. For instance, under sequential randomization with known assignment probabilities, positivity, and well-defined potential outcomes, an inverse-probability estimator for the finite cohort average treatment effect is unbiased over the randomization distribution. Let \(Y_i(1)\) and \(Y_i(0)\) be the potential outcomes, and let \(q_i\) be the conditional probability of assignment to treatment 1 before \(A_i\) is drawn. The estimator is
Each observed outcome is weighted by the inverse of its treatment-assignment probability, together with the indicator for its assigned arm. This targets the average difference in potential outcomes for the \(N\) participants; it does not weight by the assignment probability itself. For a marginal effect in a broader target population, the estimator must also standardize to that target population.
Averaging this equality over participants gives \(E(\widehat{\tau}_{HT})=N^{-1}\sum_i\{Y_i(1)-Y_i(0)\}\). This argument requires the recorded \(q_i\) values to be the actual conditional assignment probabilities and both probabilities to be positive. It establishes unbiasedness, not good precision: very small assignment probabilities can give extreme weights. Nor does it justify an analysis that substitutes incorrect probabilities or relies on an outcome model that fails under the true mechanism.
Worked Example: Inverse-Probability Contributions Under Unequal Allocation
In a hypothetical four-participant trial, suppose the recorded probabilities of treatment 1 are \(q=(0.80,0.70,0.30,0.40)\). The observed assignments are \(A=(1,1,0,0)\), and the observed binary outcomes are \(Y=(1,0,0,1)\). Applying the estimator’s contribution for each participant gives
The estimated finite-cohort average effect is \(-0.1042\) on the binary-outcome probability scale, or about \(-10.4\) percentage points. This single estimate is highly variable and does not show that the true effect is negative. It illustrates the use of inverse assignment probabilities: the observed treatment-1 success is divided by \(0.80\), and the observed control success is divided by its control-assignment probability \(1-0.40=0.60\). In a stress-test simulation, retain the actual probabilities generated by the allocation algorithm for the estimator rather than substituting the working response predictions.
Design the Stress Test and Read Its Results
For a fair comparison, use the same true outcome mechanism, enrollment process, sample size, outcome definition, analysis procedure, and stopping rule across designs. Compare the adaptive design using its working response model with an appropriate alternative, such as equal randomization. If both designs use adaptive allocation but differ only in their response model, define that contrast explicitly. When feasible, use paired replicates: generate shared underlying participant characteristics and potential outcomes for each replicate, then apply each design to that common replicate. This makes the comparison focus on the design difference rather than unrelated simulation randomness.
Specify covariates, subgroup prevalence, potential-outcome distributions, and any time or site effects. State which feature departs from the working model.
State what information the allocation rule uses, how it predicts responses, how predictions map to assignment probabilities, and whether it updates during the trial.
Hold the trial conditions and analysis fixed across the misspecified and benchmark designs; use paired replicates where possible.
Report inference metrics alongside allocation and patient-outcome metrics, with Monte Carlo uncertainty and any simulation failures.
Useful diagnostics include checking the working model’s predictions against the true response probabilities by treatment and subgroup; plotting or tabulating allocation probabilities over time; and examining whether probabilities repeatedly approach the rule’s permitted limits. In simulated data, assess whether the analysis has the intended error rate or confidence-interval coverage under each true scenario. A model that looks adequate in aggregate can be systematically wrong in an important subgroup. Conversely, prediction error alone is not proof of consequential harm if it rarely changes the allocation decisions.
Consider this hypothetical paired simulation with 2,000 replicate pairs and a true marginal effect of 0.10. The correctly specified and misspecified designs have mean treatment-1 allocation fractions of 0.58 and 0.76, and mean participant success proportions of 0.612 and 0.584. Suppose nominal 95% intervals cover the true effect in 1,888 replicates under the correctly specified design and 1,817 under misspecification. The estimated coverage rates are \(1888/2000=0.944\) and \(1817/2000=0.9085\), a difference of 0.0355. If 80 pairs cover only under the correctly specified design and 9 only under misspecification, the paired Monte Carlo standard error of the coverage difference is
The 0.0355 difference is about 7.63 such Monte Carlo standard errors, indicating that simulation noise alone is an implausible explanation for the difference in this hypothetical run. It does not establish that the same loss will occur in every setting. Here the success proportion is a participant-outcome metric, the allocation fraction measures imbalance, and coverage assesses inference; none should be substituted for the others.
Alternatives, Failure Modes, and Limits
A nonadaptive design, often equal randomization, is a useful benchmark because its assignment does not depend on a response model. It may avoid harms caused by a wrong response ranking, although it does not guarantee the best participant outcomes or the most precise inference in every setting. A capped or probability-floor allocation rule can limit extreme assignments and preserve opportunities to observe outcomes in both arms. This reduces some risks but does not correct a wrongly ranked treatment. Robustness can also be evaluated across several plausible true mechanisms rather than relying on a single misspecification.
Watch for these signs that a stress test or its interpretation is going wrong:
- The truth and working model are accidentally identical. Verify the simulated response probabilities directly, especially across subgroups and over time.
- The analysis uses the wrong assignment probabilities. Store the probability actually used at each randomization; predictions from the response model are not a substitute for \(q_i\).
- Only the overall treatment effect is checked. Summaries can conceal subgroup harms or poor subgroup-specific inference.
- Extreme probabilities are ignored. When a probability approaches zero or one, inverse-probability weights can become large and make estimates unstable.
- A difference is reported without simulation uncertainty. A finite number of replicates gives noisy estimates of operating characteristics; report Monte Carlo uncertainty as well as the point estimate.
The main limitation is that a stress test only assesses the mechanisms and departures that were specified. It cannot show that an unexamined model failure is harmless, and a deliberately severe departure may not describe the eventual trial. Interpret results conditionally: under this true mechanism, this allocation rule and this analysis produced these operating characteristics. A useful conclusion is which design features are sensitive to the departure, not that one approach is universally superior.
Check Your Understanding
Answer each question using the distinction between the model driving allocation and the mechanism generating outcomes.
- A working model predicts \(m_1=0.60\), \(m_0=0.50\), and the allocation rule is \(q_i=0.50+2(m_1-m_0)\). What is \(q_i\)? If the true probabilities are \(\mu_1=0.40\), \(\mu_0=0.60\), what is the expected success probability under that allocation?
- Why is it not enough to compare overall success proportions when the working model omits a treatment-by-subgroup interaction?
- In the inverse-probability estimator, should an observed treatment outcome be weighted by \(q_i\) or by \(1/q_i\)? State the role of the treatment indicator.
- In paired simulation replicates, 50 pairs cover only under design A and 20 cover only under design B, among \(R=1{,}000\) pairs. Calculate the estimated coverage difference A minus B and its paired Monte Carlo standard error.
Solutions. 1. \(q_i=0.50+2(0.60-0.50)=0.70\). Expected success is \(0.70(0.40)+0.30(0.60)=0.28+0.18=0.46\). 2. The overall average can mask different or opposing treatment effects across subgroups, so the rule may make harmful assignments in one subgroup even when the average looks acceptable. 3. Use \(1/q_i\) for an observed treatment-1 outcome, multiplied by \(A_i\); the control contribution uses \(1/(1-q_i)\), multiplied by \(1-A_i\), with a minus sign in the treatment-effect estimator. 4. The estimated difference is \((50-20)/1000=0.030\). The paired standard error is \(\sqrt{\{(50+20)/1000-(0.030)^2\}/1000}=0.00831\), to three significant figures.