New features implemented in rpact

Friedrich Pahlke

November 25, 2026

New features implemented in rpact

rpact Package

Three releases since the last Annual Meeting

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

4.3.0 · Futility on the p-value scale

For a one-sided test, consider stopping at the interim analysis if the p-value is 0.30 or larger.

getDesignGroupSequential(
    kMax = 2, futilityBounds = 0.30, futilityBoundsScale = "pValue"
) |> 
    fetch(futilityBounds) |> 
    round(3)
futilityBounds 
         0.524 
  • getFutilityBounds() converts between scales such as z, p-value, conditional power, predictive power and treatment effect.
  • Inverse-normal designs also accept futilityBoundsScale. Fisher designs use alpha0Scale for their alpha0 bounds.

4.4.0 · Traceable qualification reports

Give the HTML and PDF reports a run-specific name and record context such as the validation environment and protocol ID.

testPackage(
    reportFileBaseName = "iq-validation-01",
    metaData = list(Environment = "Validation", Protocol = "IQ-01")
)

For scripted runs, metaDataFile reads the same fields from a plain-text KEY=VALUE file.

5.0.0 · Delayed effects in survival trials

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.

delayed <- getPiecewiseSurvivalTimeMultiArm(
    piecewiseSurvivalTime = c(0, 6),
    lambdaControl = rep(getLambdaByMedian(25), 2),
    hazardRatio = rbind(lowDose = c(1, 0.72), highDose = c(1, 0.625))
)

Pass delayed as piecewiseSurvivalTime to getSimulationMultiArmSurvival(). The patient-wise engine simulates accrual, events, censoring and dropout.

Multi-arm survival planning vignette

5.0.0 · Quick and easy comparison of designs

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.

fixed <- getDesignFixed() |>
    getSampleSizeMeans(alternative = 0.4, stDev = 0.5)
sequential <- getDesignGroupSequential(kMax = 2, typeOfDesign = "OF") |>
    getSampleSizeMeans(alternative = 0.4, stDev = 0.5)

plans <- getComparison(Fixed = fixed, Sequential = sequential)
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.

5.0.0 · Quick and easy comparison of designs (cont’d)

fixed %vs% sequential gives a quick summary. Use plot(plans, ...) or as.data.frame(plans) for further analysis. See new comparison vignette

options(rpact.comparison.summary.showAll = TRUE)
fixed %vs% sequential

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]

  • Result 1 (Futility bounds (binding))
  • Result 2 (Futility bounds (non-binding))
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

  • Profiles compare exact values on their applicable coordinates.
  • <absent>: coordinate not present in this profile.
  • -: coordinate not applicable to this profile; values are not repeated across categories.
  • NA: missing/unavailable.

Complete display: summary(x, showAll = TRUE). Full data: as.data.frame(x). Exact profiles: summary(x)$parameterInfo.

5.0.0 · More options for planning

  • Survival. Patient-wise simulation also supports enrichment designs with subgroup-specific piecewise control hazards. Planning reports expected dropout by stage and patient-wise simulations report observed dropout. Survival functions now default to directionUpper = FALSE (e.g., HR < 1).
  • Futility. Convert a plan’s interim bounds directly to the treatment-effect scale. getFisherInformation() also exposes the information used in the conversion. Lower-direction designs display the bounds with the corresponding sign.
  • The new function getDesignFixed() can be used to create a fixed (single-stage) trial design
  • Reproducible settings. Configure rpact options via environment variables for scripts, CI and qualification runs.
getFutilityBounds(plan, targetScale = "treatmentEffect")

5.0.0 · More options for analysis

  • General estimates. getDataset(est = ..., se = ...) accepts stage-wise estimates and standard errors, with optional degrees of freedom.

5.0.0 · More qualification tests in less time

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.

Current Work: New rpact Features

  • futilityBoundsScale = "treatmentEffect" as a new input scale option for getDesignGroupSequential() and getDesignInverseNormal()