references/sequential_and_adaptive.md
6.4 KB查看排版效果| 1 | # Sequential and Adaptive Designs |
| 2 | |
| 3 | A fixed design commits to a single sample size and one analysis at the end. |
| 4 | **Sequential** and **adaptive** designs allow looks at the data *during* the study and |
| 5 | let you stop early (for benefit, harm, or futility) or modify the design — saving |
| 6 | participants, time, and money. The catch: every interim look at the data is another |
| 7 | chance to cross the significance threshold by luck, so the error rate must be |
| 8 | controlled explicitly. Peeking at accumulating data and stopping the first time |
| 9 | p < 0.05 can inflate the Type I error rate; the amount depends on the number and timing |
| 10 | of looks, test, and correlation. This is the core problem these methods solve. |
| 11 | |
| 12 | ## Why naive peeking fails |
| 13 | |
| 14 | If you test at α = 0.05 at each of K interim analyses and stop at the first |
| 15 | significant result, the *overall* false-positive rate generally exceeds 0.05. |
| 16 | There is no universal inflation value for K looks. Calibrate the joint procedure |
| 17 | (e.g. alpha spending with its required assumptions) so the cumulative error is |
| 18 | controlled, then verify it under realistic null scenarios. |
| 19 | |
| 20 | ## Group-sequential designs |
| 21 | |
| 22 | Pre-plan a fixed number of interim analyses (e.g. at information fractions 25%, 50%, 75%, 100%) |
| 23 | and use **adjusted, more stringent boundaries** at each look so the overall α is |
| 24 | preserved. Common boundary families: |
| 25 | |
| 26 | - **Pocock:** constant (equally stringent) nominal significance level at every look. |
| 27 | Easier to stop early, but pays a larger penalty at the final analysis. |
| 28 | - **O'Brien–Fleming:** very stringent early (hard to stop in the first looks), relaxing |
| 29 | toward the planned final α. Most popular in confirmatory trials because the final |
| 30 | boundary is close to the unadjusted 0.05 and early stopping is reserved for dramatic |
| 31 | effects. |
| 32 | - **Alpha-spending functions (Lan–DeMets):** generalize the above by defining how much |
| 33 | α is "spent" as a function of information accrued, so the number and timing of looks |
| 34 | can vary under a pre-specified, valid monitoring plan. Information fractions |
| 35 | represent statistical information, not automatically enrolled-patient fractions. |
| 36 | Do not choose extra looks because an unblinded effect is nearly significant; |
| 37 | spending alone does not license such outcome-dependent monitoring. See the |
| 38 | [FDA adaptive-design guidance](https://www.fda.gov/media/78495/download). |
| 39 | |
| 40 | You can stop for: |
| 41 | - **Efficacy** — the effect crosses the upper boundary. |
| 42 | - **Futility** — the effect is so small that continuing is unlikely to ever reach |
| 43 | significance (a non-binding or binding lower boundary / conditional power threshold). |
| 44 | - **Harm** — safety boundary crossed. |
| 45 | |
| 46 | Group-sequential designs require a modestly larger maximum sample size than a fixed |
| 47 | design (to pay for the looks), but the *expected* sample size is usually smaller |
| 48 | under scenarios where trials often stop early; report it under both null and |
| 49 | plausible alternatives. |
| 50 | |
| 51 | ### Tooling |
| 52 | |
| 53 | Use purpose-built boundary calculations; the bundled Python helpers generate |
| 54 | allocation/DOE layouts, not interim boundaries. Official current options are: |
| 55 | - R [`gsDesign::gsDesign`](https://keaven.github.io/gsDesign/reference/gsDesign.html): |
| 56 | `k` includes the final analysis, `timing` specifies information fractions, and |
| 57 | `test.type` distinguishes one-sided, symmetric two-sided, and binding/nonbinding |
| 58 | futility designs. Do not assume the default `alpha=0.025` is a two-sided 0.05 test. |
| 59 | - R [`rpact::getDesignGroupSequential`](https://docs.rpact.org/reference/getDesignGroupSequential.html): |
| 60 | configure `kMax`, `informationRates`, `sided`, `alpha`, `typeOfDesign`, and |
| 61 | futility explicitly. These are documentation-verified pointers; this skill does |
| 62 | not ship or runtime-test an R boundary calculation. |
| 63 | - For custom rules, **simulate** the whole sequential procedure (generate data, apply |
| 64 | the boundaries look by look, repeat) to confirm the realized Type I error and to |
| 65 | estimate expected sample size and power. This mirrors the simulation approach in the |
| 66 | **statistical-power** skill and is the most flexible route. |
| 67 | |
| 68 | ## Adaptive designs |
| 69 | |
| 70 | Broader than group-sequential: the design itself can change at an interim based on |
| 71 | accumulating data, within a pre-specified plan that still controls error. Main types: |
| 72 | |
| 73 | - **Sample-size re-estimation:** recompute the required n at an interim using the |
| 74 | observed nuisance parameter (e.g. the variance or control-arm rate), without |
| 75 | unblinding the treatment effect. Protects against a misjudged variance at planning. |
| 76 | - **Adaptive randomization:** shift allocation probabilities toward the better- |
| 77 | performing arm as data accrue (response-adaptive), or to improve covariate balance. |
| 78 | - **Drop-the-loser / arm selection:** start with several arms or doses and drop |
| 79 | inferior ones at interims (seamless phase II/III). |
| 80 | - **Adaptive enrichment:** narrow enrollment to a subgroup that appears to benefit. |
| 81 | |
| 82 | Adaptive designs are powerful but easy to get wrong: any adaptation that uses the |
| 83 | unblinded treatment effect can inflate Type I error and bias the final effect estimate |
| 84 | unless the method explicitly corrects for it. Two non-negotiables: |
| 85 | 1. **Pre-specify** the adaptation rule and the error-control method before the study. |
| 86 | 2. **Validate by simulation** that the *entire* procedure preserves the Type I error |
| 87 | rate and yields acceptable power, estimator bias, confidence-interval coverage, |
| 88 | and expected/maximum sample sizes; report Monte Carlo uncertainty. |
| 89 | |
| 90 | ## When to use them |
| 91 | |
| 92 | - **Confirmatory trials, expensive or risky enrollment** — group-sequential with |
| 93 | O'Brien–Fleming boundaries to allow ethical early stopping. |
| 94 | - **Uncertain nuisance parameters at planning** — blinded sample-size re-estimation. |
| 95 | - **Many candidate doses/arms** — adaptive arm selection / seamless designs. |
| 96 | - **Pure exploration / fixed cheap data** — usually not worth the overhead; a fixed |
| 97 | design is simpler and the analysis is unambiguous. |
| 98 | |
| 99 | ## Practical checklist |
| 100 | |
| 101 | - Decide the **number and timing** of interim analyses (or the spending function). |
| 102 | - Choose a **boundary family** matched to how eager you are to stop early. |
| 103 | - Specify **futility** rules if you want to stop for lack of effect. |
| 104 | - Inflate the **maximum** sample size to cover the looks; report the **expected** |
| 105 | sample size too. |
| 106 | - Pre-register the full sequential/adaptive plan, including the stopping rules. |
| 107 | - Have an independent **data monitoring committee** look at unblinded interims in |
| 108 | human trials, not the study team. |
| 109 | - **Simulate** the design end to end to confirm error control before running it. |
文件内容是平台检查时读出的文本,只供查看。平台不会运行包里的任何脚本或程序。

