Package: DesignComplexSurvival 0.4.0

Gosuke Homma

DesignComplexSurvival: Simulation-Free Design of Complex Time-to-Event Trials

Computes the expected numbers of events, the mean, variance and covariance of the log-rank statistic over calendar time, and the power, type I error, required number of events, sample size, accrual duration and follow-up of two-group time-to-event trials, without patient-level simulation. Each group follows a multistate model (progression-free, progressed, switched, dead, and progression-free after a switch before progression) with piecewise constant intensities, which covers progression-free survival, overall survival and treatment switching before, at or after progression, with an effect of the switch on the death hazard or an accelerated failure time effect, together with piecewise uniform accrual, piecewise exponential dropout, a censoring of progression-free survival only, switching that starts at a calendar time and group sequential designs with efficacy bounds and binding or non-binding futility bounds. Progression-free and overall survival can be tested together with a group sequential fixed-sequence or Bonferroni procedure, the latter with recycling of the level after a rejection as in Maurer and Bretz (2013) <doi:10.1080/19466315.2013.807748>, using the joint distribution of the two log-rank statistics over calendar time. For designs with one endpoint, the expected study duration, numbers of events and enrolled patients when the trial stops at its bounds, the conditional power at an interim analysis, and plots of the bounds, the probabilities of stopping and the survival functions are also given. The variance and covariance of the log-rank score under the alternative follow Luo et al. (2019) <doi:10.1002/sim.7975>.

Authors:Gosuke Homma [aut, cre]

DesignComplexSurvival_0.4.0.tar.gz
DesignComplexSurvival_0.4.0.zip(r-4.7-any)DesignComplexSurvival_0.4.0.zip(r-4.6-any)
DesignComplexSurvival_0.4.0.tar.gz(r-4.7-any)DesignComplexSurvival_0.4.0.tar.gz(r-4.6-any)
DesignComplexSurvival_0.4.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
DesignComplexSurvival/json (API)

# Install 'DesignComplexSurvival' in R:
install.packages('DesignComplexSurvival', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/gosukehommaex/designcomplexsurvival/issues

Pkgdown/docs site:https://gosukehommaex.github.io

On CRAN:

Conda:

3.48 score 1 scripts 20 exports 1 dependencies

Last updated from:aed7558617. Checks:6 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK246
source / vignettesOK249
linux-releaseOK212
windows-develOK232
windows-releaseOK244
wasm-releaseOK135

Exports:gs_boundsgs_probgs_prob_mtpgs_spendlr_covlr_momentsms_accrualms_cond_powerms_event_timems_eventsms_fleischerms_looksms_modelms_nullms_powerms_probms_scenarioms_sizems_survms_test

Dependencies:mvtnorm

Designing complex time-to-event trials without simulation
What the package computes | The model of each group | What can be specified | Building a design | A delayed treatment effect | Summaries of a design | Further articles | References

Last update: 2026-11-23
Started: 2026-11-23

Group sequential designs and the covariance of the statistics
Timing of the analyses | Spending functions and efficacy bounds | Futility bounds | Expected duration, events and sample size | Conditional power at an interim analysis | The covariance of the statistics | Limits of the normal approximation | References

Last update: 2026-11-23
Started: 2026-11-23

Multistate model and treatment switching
Switching at and after progression | The clock of the post-progression intensities | The death hazard after a switch | An accelerated failure time effect of the switch | Switching before progression | Censoring of PFS only | References

Last update: 2026-11-23
Started: 2026-11-23

PFS and OS tested together
Scenario and analyses | Fixed sequence | Bonferroni and recycling of the level | Familywise error rate | An interim analysis of PFS | Correlation between the statistics | References

Last update: 2026-11-23
Started: 2026-11-23

Switching from a calendar time
Scenario | Power by the start of switching | Type I error | Scope

Last update: 2026-11-23
Started: 2026-11-23

Validation and reproduction of published results
Reproduction of published results | Comparison with simulations and other software | Expected values and conditional power | Type I error with unequal allocation | Rerunning the checks | References

Last update: 2026-11-23
Started: 2026-11-23

Readme and manuals

Help Manual

Help pageTopics
Per-look results of an ms_power object as a data frameas.data.frame.ms_power
Bounds of a group sequential designgs_bounds
Stopping probabilities of a group sequential designgs_prob
Rejection probabilities of a group sequential design with two endpointsgs_prob_mtp
Error spending functionsgs_spend
Joint distribution of the log-rank statistic at several calendar timeslr_cov
Mean and variance of the log-rank statistic over calendar timelr_moments
Piecewise uniform accrualms_accrual
Conditional power at an interim lookms_cond_power
Calendar time at which a number of events is expectedms_event_time
Expected numbers of patients, events and dropouts over calendar timems_events
Exponential model for PFS and OS of Fleischer et al. (2009)ms_fleischer
Timing of the analysesms_looks
Multistate model for one treatment groupms_model
Null scenarioms_null
Power of a group sequential log-rank designms_power
State occupation probabilitiesms_prob
Two-group trial scenarioms_scenario
Number of events, sample size, accrual duration or follow-up for a target powerms_size
Survival function, hazard and density of an endpointms_surv
Test and stopping rulesms_test
Plot an ms_power objectplot.ms_power
Print an ms_accrual objectprint.ms_accrual
Print an 'ms_cond_power' objectprint.ms_cond_power
Print an ms_looks objectprint.ms_looks
Print an ms_model objectprint.ms_model
Print an ms_power objectprint.ms_power
Print an ms_scenario objectprint.ms_scenario
Print an ms_size objectprint.ms_size
Print an ms_test objectprint.ms_test
Print a summary.ms_power objectprint.summary.ms_power
Summarize an ms_power objectsummary.ms_power