Tutorials › Response-Adaptive Randomization › Map Performance Across Scenario Grids

Simulation Studies · Tutorial 498 of 501

Map Performance Across Scenario Grids

Build and analyze structured simulation grids that show how response-adaptive randomization designs perform across clinically meaningful trial conditions.

Intermediate 12 min read

What You'll Learn

  • Define a scenario using effect size, response variability, treatment-effect heterogeneity, and sample size.
  • Choose factor levels that isolate important operating conditions without creating an unmanageable grid.
  • Calculate the number of scenarios and simulation runs required for a grid.
  • Compare designs within matched scenarios and account for Monte Carlo uncertainty.
  • Detect and verify scenario regions where design rankings change.
  • Recognize when a grid is too sparse, confounded, or computationally impractical.

Why Map Performance Across Scenarios?

A design comparison is rarely settled by one simulated trial condition. A response-adaptive randomization procedure might perform well when the treatment effect is large and outcomes are stable, yet lose power or allocate patients less evenly when responses are noisy or treatment effects vary across patients. A single scenario can therefore make a design appear generally superior when its advantage is actually conditional.

A scenario grid is a planned set of data-generating conditions formed by varying selected factors across specified values. This tutorial focuses on four factors: average treatment effect, response variability, treatment-effect heterogeneity, and total sample size. The goal is not to simulate every imaginable condition. It is to select a structured set that helps reveal where performance changes and where the ranking of competing designs may reverse.

The earlier material on framing a simulation comparison, specifying data-generating mechanisms, matching comparator conditions, and selecting performance metrics supplies the basic comparison framework. Here, the emphasis is on organizing that framework across a set of scenarios. Every design being compared should face the same scenario, and its performance should be evaluated using the same metric definition.

Define the Scenario Factors

Definition: A simulation scenario is one fully specified combination of data-generating conditions and trial settings. A scenario grid is a planned collection of such combinations. In this tutorial, a scenario can be indexed by \(s=(\tau,\sigma,\gamma,n)\), where \(\tau\) is the average treatment effect, \(\sigma\) is response variability, \(\gamma\) is treatment-effect heterogeneity, and \(n\) is the total sample size.

The symbols in the index are compact labels, not a substitute for defining the model. For example, in a continuous-outcome model one might write the potential outcome for participant \(i\) under treatment \(a\in\{0,1\}\) as

$$ Y_i(a)=\mu+\beta Z_i+a(\tau+\gamma Z_i)+\varepsilon_i, \qquad E(Z_i)=0,\quad \operatorname{Var}(Z_i)=1,\quad \varepsilon_i\sim N(0,\sigma^2). $$

Here \(Z_i\) is a measured, centered participant characteristic, and \(\varepsilon_i\) is independent of \(Z_i\) with the stated normal distribution. The treatment effect for a participant with characteristic value \(Z_i\) is \(\tau+\gamma Z_i\). Thus, with \(E(Z_i)=0\), the average treatment effect is \(\tau\), while \(\gamma\) controls how much individual treatment effects vary with \(Z_i\). In this example, \(\sigma\) is residual response variability, not the standard deviation of every outcome pooled across treatment groups. The model is illustrative; other outcome types require their own clearly defined parameters and assumptions.

Choose levels with interpretation in mind. Values of \(\tau\) might represent no effect, a small effect, and a clinically important effect. Values of \(\sigma\) should represent plausible lower, central, and higher residual variability. Values of \(\gamma\) might include no heterogeneity and one or more nonzero levels. Sample sizes should span the range relevant to the design decision. Specify units for \(\tau\) and \(\sigma\), and explain how the heterogeneity parameter is scaled. If the treatment effect is measured in outcome units, then \(\gamma\) in the model above has the same units per one standard-deviation increase in \(Z_i\).

When both \(\tau\) and \(\sigma\) vary, report or inspect their ratio as well as their separate values. For example, \(\tau/\sigma\) is a standardized effect in the continuous-outcome setting just described. A grid that changes \(\tau\) and \(\sigma\) together may otherwise make it hard to tell whether a performance shift is associated with effect size, noise, or both.

Plan the Grid Before Running It

A full factorial grid includes every combination of the specified levels. If the four factors have \(L_\tau,L_\sigma,L_\gamma,L_n\) levels, respectively, the number of scenarios is

$$ S=L_\tau L_\sigma L_\gamma L_n. $$

A full factorial grid is transparent and supports comparisons that vary one factor while holding the others fixed. It can also become expensive quickly. A fractional or targeted grid includes only selected combinations, for example to concentrate on a plausible region or a suspected ranking boundary. Such a grid can be useful, but its omissions must be explicit: conclusions apply to the conditions simulated, not automatically to every point between or outside them.

Worked Example: Counting a Full Factorial Grid

Suppose a hypothetical continuous-outcome simulation uses three average effects, \(\tau\in\{0,2,4\}\) points; three residual standard deviations, \(\sigma\in\{4,6,8\}\) points; two heterogeneity levels, \(\gamma\in\{0,2\}\) points per standard-deviation increase in \(Z_i\); and three sample sizes, \(n\in\{60,120,240\}\). Assume each combination is a separate scenario.

The grid contains

$$ S=3\times3\times2\times3=54\text{ scenarios}. $$

If each scenario has \(R=2{,}000\) simulation replicates for each of two designs, the run count is \(54\times2{,}000\times2=216{,}000\) design-replicate runs. If the designs use paired replicates, there are still 2,000 replicate pairs per scenario, but each pair evaluates both designs under corresponding simulated conditions. The count is a planning quantity; it does not mean that all 54 scenarios are equally important to the scientific question.

A useful plan names each factor, lists its levels and units, and records the rationale for including them. Include a reference condition that reflects the central assumptions of interest. Add boundary or stress conditions when they answer a specific question, rather than adding extreme values merely because they are possible. For each factor, check that changing its level has the intended meaning under the data-generating mechanism.

Compare Designs Within Each Scenario

For a performance metric such as power, coverage, allocation imbalance, or patient benefit, calculate the metric separately for each design in every scenario. A ranking is therefore scenario-specific. It should not be obtained by averaging across scenarios with arbitrary equal weights unless that average is itself the explicitly defined target summary.

For a binary replicate-level outcome, such as whether a test rejects \(H_0\), the estimated operating characteristic in one scenario is \(\hat{p}=K/R\), where \(K\) of the \(R\) replicates meet the specified event. If the replicate outcomes are independent and have a common event probability \(p\), the Monte Carlo standard error is approximately \(\sqrt{\hat{p}(1-\hat{p})/R}\). This describes simulation uncertainty in the estimated operating characteristic; it is not the sampling standard error of an estimate from one clinical trial.

Worked Example: Quantifying Monte Carlo Uncertainty at One Grid Point

At a hypothetical scenario with \(\tau=2\) points, \(\sigma=6\) points, \(\gamma=0\), and \(n=120\), a design rejects \(H_0\) in \(1{,}560\) of \(2{,}000\) replicates. Treating rejection as the binary event, the estimated power is

$$ \hat{p}=\frac{1{,}560}{2{,}000}=0.780. $$

The approximate Monte Carlo standard error is

$$ SE_{\mathrm{MC}} =\sqrt{\frac{0.780(1-0.780)}{2{,}000}} =\sqrt{0.0000858} \approx0.00927. $$

Thus, the estimated power is 78.0%, with Monte Carlo standard error about 0.93 percentage points. This quantifies simulation precision at this grid point under the independent-replicate approximation. It does not establish that power is exactly 78.0%, nor does it summarize uncertainty from model misspecification.

When the goal is to compare two designs, paired replicates can make the comparison more precise: both designs are evaluated using corresponding simulated conditions, and the replicate-level difference is retained. For a metric \(M\), define \(D_r=M_{A,r}-M_{B,r}\) in replicate pair \(r\). The estimated difference is \(\bar{D}=R^{-1}\sum_{r=1}^R D_r\), and its Monte Carlo standard error is \(s_D/\sqrt{R}\), where \(s_D\) is the sample standard deviation of the paired differences. The pairing must be constructed consistently with the simulation design; the two results within a pair need not be identical, but they must correspond to a deliberate shared set of simulated conditions.

Locate and Check Ranking Changes

A ranking change occurs when the estimated difference between two designs changes sign across scenarios. It is more informative to track the difference than to report separate rankings alone. For power, for example, define \(\Delta=\text{power}_A-\text{power}_B\). A positive value favors design A on power; a negative value favors design B. This statement concerns that metric only. It does not imply an overall design preference.

Worked Example: Finding a Crossover Across Sample Sizes

Consider hypothetical estimated power for two designs at fixed \(\tau=2\) points, \(\sigma=6\) points, and \(\gamma=0\), with \(R=2{,}000\) replicates at each sample size.

Sample size \(n\)Design A powerDesign B power\(\Delta=\text{A}-\text{B}\)
600.5400.570-0.030
1200.7800.7600.020
2400.9400.9300.010

At \(n=60\), the estimated difference is \(0.540-0.570=-0.030\), so design B has 3 percentage points higher estimated power. At \(n=120\), it is \(0.780-0.760=0.020\), so design A has 2 percentage points higher estimated power. The estimated ranking therefore changes between the tested sample sizes 60 and 120. At \(n=240\), design A remains higher by 1 percentage point.

This grid establishes a sign change among the simulated points, not the exact sample size at which the underlying performance difference is zero. The differences are small enough that Monte Carlo uncertainty should be checked before treating the apparent crossover as reliable. A denser grid around the change, with adequate replication and paired differences where appropriate, can test whether the pattern persists.

One short justification explains why the sign of the difference is the relevant quantity. If \(\widehat{M}_A\) and \(\widehat{M}_B\) estimate the same performance metric in the same scenario, then

$$ \widehat{\Delta}=\widehat{M}_A-\widehat{M}_B. $$

If \(\widehat{\Delta}>0\), then \(\widehat{M}_A>\widehat{M}_B\); if \(\widehat{\Delta}<0\), then \(\widehat{M}_A<\widehat{M}_B\). A ranking reversal across two scenarios requires opposite signs for their estimated differences. But each estimate has Monte Carlo error, so a reversal close to zero may reflect simulation noise. Reporting the difference with its Monte Carlo uncertainty, and increasing replication or refining the grid when needed, distinguishes a stable pattern from a fragile one.

Diagnostics, Alternatives, and Limitations

Inspect the grid as a structured object rather than as a long list of isolated results. Tables can show exact values; heatmaps or line plots can reveal patterns when two factors vary and the others are held fixed. For each display, label the held-fixed factors. A plot of performance against \(n\), for example, should identify the effect, variability, and heterogeneity levels represented by each line or panel.

  • Check for confounded factor changes. If \(\tau\) and \(\sigma\) always increase together, their separate effects on performance cannot be distinguished from that grid alone.
  • Check monotonic patterns rather than assuming them. Power often rises with sample size under standard conditions, but adaptive allocation, analysis choices, or model violations can produce non-simple patterns for other metrics.
  • Check uncertainty near apparent boundaries. A ranking that changes by a fraction of a percentage point may not be distinguishable from Monte Carlo error at the chosen \(R\).
  • Check scenario definitions and units. An incorrectly scaled \(\gamma\), an unclear meaning of \(\sigma\), or inconsistent total sample size can make a well-computed grid answer the wrong question.
  • Check grid coverage. Large gaps between levels can conceal a narrow region of poor performance or a ranking reversal.

A full factorial design is the clearest approach when the number of factor levels is manageable and interactions matter. A one-factor-at-a-time analysis is simpler to display, but can miss interactions: the effect of changing \(\sigma\), for instance, may depend on \(\tau\) or \(\gamma\). A targeted or fractional grid reduces computational burden, but it may not support conclusions about omitted combinations. A dense grid near a suspected crossover is a useful follow-up, but should not replace the broad initial map if the broader conditions matter.

The grid is only as credible as its data-generating assumptions and implementation. It does not establish which design is best in settings not represented, and no finite set of scenarios proves universal superiority. If rankings depend on a narrow region, interpolation between simulated points needs support rather than assumption. The later material on interpreting trade-offs across design metrics addresses how to combine metric-specific findings; here, the essential output is a transparent map of those findings by scenario.

Common Pitfall: Treating One Ranking as Universal

Correction: “Design A has higher power at the central scenario” does not mean “design A is more powerful across the trial conditions of interest.” Compare designs at matched scenario points, track the estimated difference, and state where its sign and practical size are stable. Keep metric-specific rankings distinct.

Another frequent error is to select factor levels after seeing which design they favor, then present the resulting grid as if it had been planned to represent the scientific problem. Define the relevant ranges and reference conditions first, document any follow-up grid as exploratory, and avoid claiming that untested combinations have been covered.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions.

  1. A grid has four effect levels, three response-variability levels, two heterogeneity levels, and three sample sizes. How many full factorial scenarios does it contain?
  2. Why can a grid in which effect size and response variability always increase together fail to identify which factor explains a performance change?
  3. In a scenario, design A has estimated power 0.72 and design B has estimated power 0.75. What is \(\widehat{\Delta}\) when it is defined as A minus B, and which design has higher estimated power?
  4. What does a sign change in estimated design differences between two sample sizes establish, and what does it not establish?
  5. Give one reason to use a targeted grid and one limitation of doing so.

Solutions. (1) \(4\times3\times2\times3=72\) scenarios. (2) Both factors change together, so their separate contributions are confounded in that grid; the pattern does not isolate either factor. (3) \(\widehat{\Delta}=0.72-0.75=-0.03\), so design B has 3 percentage points higher estimated power. (4) It establishes a ranking reversal among the tested points based on the estimates. It does not locate the exact crossover or show that the reversal is larger than Monte Carlo error. (5) A targeted grid can concentrate runs on a scientifically important region or suspected boundary. Its limitation is that omitted combinations cannot be directly assessed, so conclusions must remain limited to the simulated conditions.

Clinical Biostats