Tutorials › Response-Adaptive Randomization › Frame A Simulation Comparison

Simulation Studies · Tutorial 485 of 501

Frame A Simulation Comparison

Specify what is being compared, for whom, at what trial size, and which primary quantities will summarize the difference between allocation designs.

Intermediate 12 min read

What You'll Learn

  • Distinguish an allocation-design contrast from a treatment-effect estimand.
  • Define the target population and trial conditions that make a design comparison interpretable.
  • Separate the number of participants per trial from the number of simulated trials.
  • Specify primary estimands as contrasts in design-level operating characteristics.
  • Recognize mismatched conditions and ambiguous estimands that undermine a comparison.

Frame the Comparison Before Simulating

A simulation comparing response-adaptive randomization with a prespecified allocation is only interpretable if the comparison is defined in advance. The central question is not simply whether one design “does better.” It is: which design strategies are being compared, for which trial population and conditions, at what trial sample size, and with respect to which prespecified quantities? If those choices are vague, a numerical result can be calculated without answering a clear design question.

This tutorial focuses on framing. It does not prescribe how to generate trial data or implement an allocation algorithm. Instead, it sets out the design contrast and the targets that a later simulation will need to represent. The same principles apply whether the response-adaptive rule uses accumulating outcomes to update allocation probabilities or the comparator uses a fixed allocation ratio.

Definition: A design contrast is a comparison between two fully specified trial-design strategies, differing in the feature of interest—in this case, the allocation strategy—while the target population, trial size, endpoint, follow-up, analysis, and other relevant design conditions are held fixed. A primary estimand is the precisely defined quantity that the comparison is intended to estimate.

Specify the Two Strategies and the Target Population

Name both strategies concretely. For example, one strategy may use a response-adaptive allocation rule, while the comparator assigns participants according to a prespecified 1:1 ratio. “Adaptive versus standard” is not enough: “standard” could refer to different allocation ratios, eligibility rules, follow-up schedules, or analyses. The intended contrast should make clear which feature changes and which features do not.

The target population is the population to which the simulated trial is intended to apply. Describe it using the characteristics that matter to the question: for instance, adults meeting stated eligibility criteria at participating clinics, with a defined clinical condition and a specified range of baseline risk. Also state the setting and calendar or follow-up context when these affect interpretation. A broad phrase such as “patients with the condition” may conceal important limits on who is represented.

A simulation comparison needs trial conditions as well as a population label. Specify the treatments being compared, the primary endpoint and its measurement time, how outcomes affected by discontinuation or rescue treatment will be handled, and the planned analysis. These choices help define the outcome being summarized. They should be common across the two strategies unless a deliberate, separately stated contrast changes them. In particular, if the analysis differs between strategies, the comparison is no longer solely a comparison of allocation rules.

The target population and conditions are not merely background descriptions. They determine what the comparison means. A result for a highly selected population with frequent outcome events need not describe the design trade-off in a broader population with rarer events. The design contrast should therefore be stated within a clearly defined target context, rather than presented as a universal ranking of allocation strategies.

Worked Example: Writing a Design Contrast in Context

Suppose a planning team is considering a hypothetical two-arm trial of treatments A and B for adults with a specified condition. The endpoint is a binary response measured 12 weeks after randomization. The team wants to compare a response-adaptive allocation strategy with a prespecified 1:1 allocation.

A sufficiently clear framing is: “Among eligible adults with this condition treated in the stated clinic setting, compare the trial strategy using the specified response-adaptive allocation rule with the strategy assigning participants 1:1 to A and B. Hold eligibility, endpoint definition at 12 weeks, follow-up, total enrollment, and final analysis fixed.”

The target population is not all people who could ever receive either treatment; it is the stated eligible adult population in the specified setting. The design contrast is the adaptive strategy versus the 1:1 strategy. The endpoint and follow-up time are common to both. This framing does not yet say which strategy is preferable: that requires naming the primary estimand and the conditions under which it will be assessed.

Define Trial Sample Size Precisely

For a design comparison, the trial sample size \(n\) is the number of participants enrolled in each hypothetical trial. Unless the question explicitly concerns sample-size selection, use the same \(n\) for both allocation strategies. Otherwise, a difference in performance could reflect a difference in enrollment as well as a difference in allocation.

This \(n\) is distinct from the number of simulated trials. If a simulation repeats a hypothetical trial many times, each repetition has its own trial sample size \(n\); the number of repetitions controls how precisely the simulation estimates an average over repeated trials. Those are different quantities and should never be reported as if they were interchangeable.

Also say whether \(n\) means the planned maximum enrollment or the number enrolled before a stopping rule. If the designs can stop at different times, comparing them at the same maximum enrollment does not necessarily mean they have the same realized number of participants. That may be part of the intended design contrast, but it must be stated rather than left ambiguous. A comparison intended to isolate allocation should not quietly allow enrollment or stopping rules to vary as well.

Worked Example: Fixing the Trial Size and Comparator

Consider a hypothetical comparison with \(n=180\) participants per trial. The prespecified comparator allocates 1:1 to A and B, so its planned allocation is \(180/2=90\) participants to each arm.

Suppose, solely for planning illustration, the adaptive strategy is expected to allocate about 60% of participants to A and 40% to B under a particular scenario. The corresponding expected counts are

$$ 180(0.60)=108 \text{ for A}, \qquad 180(0.40)=72 \text{ for B}. $$

These are expected counts implied by the stated allocation proportions, not a promise that every adaptive trial will enroll exactly 108 and 72 participants. The design comparison still uses \(n=180\) in each trial. It would be misleading to describe the simulation as comparing “180 participants” with “180 participants” and then omit the fact that the strategies distribute them differently between arms.

If the simulation repeats each strategy 2,000 times, that is 2,000 hypothetical trials per strategy, each with \(n=180\). The number 2,000 is not the clinical trial sample size.

Choose the Primary Estimands

There are two levels of estimand to keep separate. A treatment estimand describes the treatment effect of interest in the target population—for example, a difference in response probabilities between A and B at 12 weeks. A design-comparison estimand describes how a prespecified summary of trial performance differs between the two allocation strategies. A design-comparison estimand does not replace the clinical treatment estimand; it asks how the design performs when that treatment question is studied.

For a precise definition, let \(D_A\) denote the adaptive design and \(D_C\) the prespecified comparator. Let \(O_D\) represent the relevant result from a hypothetical trial run under design \(D\), and let \(g(O_D)\) be the prespecified trial-level quantity of interest. Under a stated set of trial conditions, the design-comparison estimand can be written as

$$ \Delta = E\{g(O_{D_A})\} - E\{g(O_{D_C})\}. $$

The expectations refer to the distribution of hypothetical trial results under the respective designs and the specified conditions. The definition is incomplete until \(g\), the population, the trial size, the endpoint, the analysis, and the conditions are stated. The direction also matters: with this ordering, a positive \(\Delta\) means the expected value of \(g\) is higher under the adaptive design. Whether that is desirable depends on what \(g\) represents.

For example, if \(g\) is an indicator that the prespecified test rejects under a particular alternative, its expectation is the probability of rejection, and \(\Delta\) is a difference in power. If \(g\) is an indicator of rejection when the null hypothesis is true, the contrast concerns the rejection probability under that null condition. If \(g\) is a participant-level outcome summary, the contrast concerns the expected value of that summary under the two strategies. These are distinct questions. Naming one as primary prevents a simulation from producing many outputs without a clear principal conclusion.

Definition: For a specified trial scenario, a design-comparison estimand is the difference in the expected value of a defined trial-level quantity under the adaptive strategy and the comparator, with the order of subtraction stated. The target population, trial size, endpoint, analysis, and scenario conditions are part of its definition.

Worked Example: A Difference in Power

Suppose a hypothetical planning exercise specifies a treatment alternative and a common analysis. The team defines \(g\) as 1 when the analysis rejects \(H_0\) and 0 otherwise. Under the stated alternative, the probability of rejection is estimated as 0.84 for the adaptive strategy and 0.78 for the 1:1 comparator. The primary design-comparison estimand is

$$ \Delta = 0.84 - 0.78 = 0.06. $$

Thus, for these hypothetical conditions, the estimated power is 0.06 higher under the adaptive strategy: a difference of 6 percentage points. It is not a 6% relative increase. The relative increase, if separately requested, would be \(0.06/0.78 \approx 0.0769\), or about 7.69% relative to the comparator’s power. The primary contrast here is the absolute difference, not that relative quantity.

The interpretation depends on the full specification. It is a comparison for the stated target population, sample size, alternative, and analysis; it is not evidence that adaptive allocation always has higher power. The arithmetic is a hypothetical illustration of defining the estimand, not a report from a real study.

Why the Contrast Needs Matching Conditions

The basic justification for holding conditions fixed is a difference-in-expectations comparison. If the same outcome definition, population, trial size, and analysis apply to both strategies, then \(\Delta\) targets the difference associated with changing the allocation strategy under those conditions. If another feature also changes, the contrast combines its effect with the allocation difference.

For example, write \(m(D,C)\) for the expected value of a chosen trial-level quantity under design \(D\) and conditions \(C\). The intended contrast at common conditions \(C\) is

$$ \Delta_C = m(D_A,C)-m(D_C,C). $$

If the adaptive strategy is instead assessed at conditions \(C_A\) and the comparator at different conditions \(C_C\), the computed quantity is

$$ m(D_A,C_A)-m(D_C,C_C). $$

This second difference cannot generally be attributed to allocation alone: the conditions also differ. Matching does not mean that every design feature must be identical. Allocation is intentionally different, and consequences of that difference—such as arm-specific sample sizes—belong to the contrast. The point is to identify intentional differences and avoid accidental ones.

The primary estimand should be fixed before examining results. If a team chooses the outcome summary, scenario, or subgroup only after seeing which comparison looks favorable, the resulting headline no longer represents a prespecified primary question. Secondary summaries can still be useful, but they should be labeled as secondary or exploratory rather than substituted for the original target.

Worked Example: Preventing a Confounded Comparison

A hypothetical team plans to compare an adaptive strategy with a 1:1 comparator using a rejection indicator under a specified alternative. The adaptive trials enroll 200 participants and use an analysis adjusted for a baseline covariate. The comparator trials enroll 160 participants and use an unadjusted analysis. Suppose their estimated rejection probabilities are 0.86 and 0.79.

The arithmetic difference is \(0.86-0.79=0.07\), or 7 percentage points. But this is not a clean estimate of the allocation-strategy contrast because both sample size and analysis differ. The difference could reflect allocation, enrollment, analysis, or a combination.

To frame an allocation comparison, the team should instead specify the same trial size and common analysis for both strategies, then define the difference in expected rejection probabilities under those matched conditions. If the team deliberately wants to compare two complete design packages with different sizes and analyses, that is a different design contrast and must be described as such.

Diagnostics, Alternatives, and Limitations

Several warning signs indicate that a comparison has not been framed tightly enough:

  • The comparator is unnamed or underspecified. State its prespecified allocation probabilities and any other distinguishing features needed to identify it.
  • The target population is too broad to interpret. Specify eligibility, setting, and any population features central to the question.
  • The trial size is ambiguous. State whether \(n\) is maximum or fixed enrollment and distinguish it from the number of simulated repetitions.
  • The primary estimand is only a label. “Power” or “patient benefit” is not enough without defining the event or outcome, conditions, and direction of the contrast.
  • Unintended design features vary. Differences in follow-up, endpoint, analysis, or enrollment can prevent attribution to allocation alone.

A principal alternative is to compare complete design packages rather than isolate the allocation rule. That can be appropriate when the practical decision is between packages as they would actually be used. The estimand must then describe the package-level contrast, and the conclusion should not claim that allocation alone caused the difference. Another option is to define several contrasts for distinct target populations or trial sizes. These answer multiple scoped questions; they do not replace the need to state a primary contrast.

No single framing establishes that a strategy is best in every setting. The result applies to the chosen target population, trial conditions, sample size, comparator, and primary estimand. If those conditions are not representative of the intended use, a precisely calculated contrast can still be practically uninformative. Furthermore, different primary estimands can favor different designs: greater probability of rejection, for example, is not the same objective as a more favorable participant-level outcome.

Key takeaway: A useful simulation comparison begins with a complete sentence specifying the adaptive strategy, comparator, target population, trial sample size, common trial conditions, and primary estimand. The resulting contrast is only as meaningful as that specification.

Check Your Understanding

Answer each question using the definitions and distinctions in this tutorial. Brief solutions follow.

  1. A comparison uses 1:1 fixed allocation as its comparator but does not state the population or endpoint time. Name two missing elements needed to interpret the design contrast.
  2. Each hypothetical trial enrolls 240 participants, and the simulation runs 1,500 repetitions per strategy. Identify the trial sample size and the number of simulated trials per strategy.
  3. Under stated conditions, the expected value of a defined trial-level quantity is 0.73 for the adaptive design and 0.81 for the comparator. Calculate \(\Delta\) using adaptive minus comparator and interpret its sign.
  4. Why can power under an alternative not be interpreted as the probability that the null hypothesis is true?
  5. A team changes allocation, trial size, and analysis between the two strategies. Can the resulting difference be attributed to allocation alone? Explain.

Solutions. (1) At minimum, specify the target population and the endpoint with its measurement time; the analysis and other trial conditions should also be stated. (2) The trial sample size is \(n=240\) participants per hypothetical trial, and there are 1,500 simulated trials per strategy. (3) \(\Delta=0.73-0.81=-0.08\). The defined quantity is lower by 0.08 under the adaptive design in these conditions; whether that is better or worse depends on the meaning of the quantity. (4) Power is the probability of rejection under a specified alternative and repeated-trial setup. It is not a probability assigned to the null hypothesis being true. (5) No. The difference may reflect allocation, trial size, analysis, or their combination. To attribute it to allocation alone, hold sample size and analysis fixed, or explicitly describe the comparison as one between complete design packages.

Clinical Biostats