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>.

Package details

AuthorGosuke Homma [aut, cre] (ORCID: <https://orcid.org/0000-0002-6854-5627>)
MaintainerGosuke Homma <my.name.is.gosuke@gmail.com>
LicenseGPL (>= 2)
Version0.4.0
URL https://gosukehommaEX.github.io/DesignComplexSurvival/  https://github.com/gosukehommaEX/DesignComplexSurvival 
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("DesignComplexSurvival")

Try the DesignComplexSurvival package in your browser

Any scripts or data that you put into this service are public.

DesignComplexSurvival documentation built on Nov. 23, 2026, 5:07 p.m.