Package: DesignComplexSurvival
Type: Package
Title: Simulation-Free Design of Complex Time-to-Event Trials
Version: 0.4.0
Authors@R: c(
    person(
      "Gosuke", "Homma",
      email = "my.name.is.gosuke@gmail.com",
      role = c("aut", "cre"),
      comment = c(ORCID = "0000-0002-6854-5627")
    )
  )
Description: 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>.
License: GPL (>= 2)
URL: https://gosukehommaEX.github.io/DesignComplexSurvival/,
        https://github.com/gosukehommaEX/DesignComplexSurvival
BugReports: https://github.com/gosukehommaEX/DesignComplexSurvival/issues
Depends: R (>= 4.1.0)
Imports: graphics, grDevices, mvtnorm (>= 1.2-0), stats
Suggests: gsDesign, gsDesign2, knitr, lrstat, rmarkdown, rpact,
        testthat (>= 3.0.0)
VignetteBuilder: knitr
Config/testthat/edition: 3
Encoding: UTF-8
Language: en-US
Config/roxygen2/version: 8.0.0
NeedsCompilation: no
Packaged: 2026-11-03 08:05:17 UTC; i_lik
Author: Gosuke Homma [aut, cre] (ORCID:
    <https://orcid.org/0000-0002-6854-5627>)
Maintainer: Gosuke Homma <my.name.is.gosuke@gmail.com>
Repository: CRAN
Date/Publication: 2026-11-23 14:40:02 UTC
