getDesignGroupSequential(
kMax = 2, futilityBounds = 0.30, futilityBoundsScale = "pValue"
) |>
fetch(futilityBounds) |>
round(3)futilityBounds
0.524
November 25, 2026


| Release | Date | Highlights |
|---|---|---|
| 4.3.0 | December 16, 2025 | Futility bounds on familiar scales |
| 4.4.0 | March 4, 2026 | Custom installation qualification reports |
| 5.0.0 | November 16, 2026 | Patient-wise survival simulation and side-by-side trial comparisons |
For a one-sided test, consider stopping at the interim analysis if the p-value is 0.30 or larger.
futilityBounds
0.524
getFutilityBounds() converts between scales such as z, p-value, conditional power, predictive power and treatment effect.futilityBoundsScale. Fisher designs use alpha0Scale for their alpha0 bounds.Give the HTML and PDF reports a run-specific name and record context such as the validation environment and protocol ID.
For scripted runs, metaDataFile reads the same fields from a plain-text KEY=VALUE file.
Example. Two doses share a control arm. Both have HR 1 in the first six months. After month 6, the hazard ratios are 0.72 and 0.625.
Pass delayed as piecewiseSurvivalTime to getSimulationMultiArmSurvival(). The patient-wise engine simulates accrual, events, censoring and dropout.
What changes with an interim analysis?
Compare a fixed design with a two-stage design at 80% power for the same mean difference (0.4) and standard deviation (0.5). The table shows total sample sizes before rounding to whole participants.
| Design | Planned maximum | Expected under the alternative |
|---|---|---|
| Fixed | 51.0 | 51.0 |
| Two-stage | 51.4 | 46.1 |
The two-stage design needs room for slightly more participants but averages about five fewer under the assumed effect.
fixed %vs% sequential gives a quick summary. Use plot(plans, ...) or as.data.frame(plans) for further analysis. See new comparison vignette
Sample size calculation comparison summary
Comparison of 2 sample size means calculations. Result numbers follow the comparison input order. The comparison identifies 21 differing parameters and 14 shared parameters or profiles. Shared (examples): Object type, Endpoint, Calculation target, Alternatives, Standard deviation, Normal approximation, Mean ratio, Treatment groups, Theta H0, Planned allocation ratio, Significance level, Type II error rate, Test, Direction upper.
Inputs and design settings
Maximum number of stages [2 profiles]
| Result 1 | Result 2 |
|---|---|
| 1 | 2 |
Information rates [2 profiles]
| Stage | Result 1 | Result 2 |
|---|---|---|
| 1 | NA | 0.5 |
| 2 | <absent> | 1.0 |
Type of design [2 profiles]
| Result 1 | Result 2 |
|---|---|
| NA | OF |
Binding futility [2 profiles]
| Result 1 | Result 2 |
|---|---|
| NA | FALSE |
Tolerance [2 profiles]
| Result 1 | Result 2 |
|---|---|
| NA | 1e-08 |
Results and derived parameters
Maximum number of subjects [2 profiles]
| Result 1 | Result 2 |
|---|---|
| NA | 51.44676 |
Maximum number of subjects (1) [2 profiles]
Stage: 1
| Result 1 |
|---|
| NA |
| Result 2 |
|---|
| 25.72338 |
Maximum number of subjects (2) [2 profiles]
Stage: 1
| Result 1 |
|---|
| NA |
| Result 2 |
|---|
| 25.72338 |
Number of subjects [2 profiles]
| Result 1 |
|---|
| 51.04927 |
| Stage | Result 2 |
|---|---|
| 1 | 25.72338 |
| 2 | 51.44676 |
Expected number of subjects under H0 [2 profiles]
Stage: 1
| Result 1 |
|---|
| NA |
| Result 2 |
|---|
| 51.38032 |
Expected number of subjects under H0/H1 [2 profiles]
Stage: 1
| Result 1 |
|---|
| NA |
| Result 2 |
|---|
| 50.52687 |
Reject per stage [2 profiles]
| Stage | Situation | Result 1 | Result 2 |
|---|---|---|---|
| 1 | 1 | NA | <absent> |
| 1 | - | <absent> | 0.2096051 |
| 2 | - | <absent> | 0.5903949 |
Early stop [2 profiles]
Stage: 1
| Result 1 |
|---|
| NA |
| Result 2 |
|---|
| 0.2096051 |
Critical values (treatment effect scale) [2 profiles]
| Result 1 |
|---|
| 0.2812538 |
| Stage | Result 2 |
|---|---|
| 1 | 0.6073681 |
| 2 | 0.2827050 |
Cumulative alpha spending [2 profiles]
| Stage | Result 1 | Result 2 |
|---|---|---|
| 1 | NA | 0.002582893 |
| 2 | <absent> | 0.024999990 |
Critical values [2 profiles]
| Stage | Result 1 | Result 2 |
|---|---|---|
| 1 | 1.959964 | 2.796510 |
| 2 | <absent> | 1.977431 |
Stage levels (one-sided) [2 profiles]
| Stage | Result 1 | Result 2 |
|---|---|---|
| 1 | 0.025000000 | 0.002582893 |
| 2 | <absent> | 0.023996469 |
Futility bounds (binding) / Futility bounds (non-binding) [2 profiles]
| Stage | Result 1 | Result 2 |
|---|---|---|
| 1 | NA | -Inf |
| 2 | <absent> | -Inf |
Number of subjects (1) [2 profiles]
| Result 1 |
|---|
| 25.52464 |
| Stage | Result 2 |
|---|---|
| 1 | 12.86169 |
| 2 | 25.72338 |
Number of subjects (2) [2 profiles]
| Result 1 |
|---|
| 25.52464 |
| Stage | Result 2 |
|---|---|
| 1 | 12.86169 |
| 2 | 25.72338 |
Expected number of subjects [2 profiles]
| Stage | Result 1 | Result 2 |
|---|---|---|
| 1 | NA | 46.05501 |
| 2 | <absent> | 46.05501 |
Legend
Complete display: summary(x, showAll = TRUE). Full data: as.data.frame(x). Exact profiles: summary(x)$parameterInfo.
directionUpper = FALSE (e.g., HR < 1).getFisherInformation() also exposes the information used in the conversion. Lower-direction designs display the bounds with the corresponding sign.getDesignFixed() can be used to create a fixed (single-stage) trial designgetDataset(est = ..., se = ...) accepts stage-wise estimates and standard errors, with optional degrees of freedom.| Before | After | |
|---|---|---|
| Number of tests | 38,063 | 62,716 |
| Approximate runtime | 40 min | 10 min |
The test suite grew by nearly 65%. Parallel execution in testPackage() makes it practical to run the expanded suite, with about 30 minutes saved per qualification run in this comparison.
Parallel execution works on Windows, Linux and macOS. HTML and PDF reports remain available. Set workers = 1 for a serial run.
futilityBoundsScale = "treatmentEffect" as a new input scale option for getDesignGroupSequential() and getDesignInverseNormal()