Nothing
ms_power() and ms_size() give, for a design with one endpoint, the
expected study duration, number of events and number of enrolled patients
when the trial stops at the bounds, under the design scenario and under the
null scenario (expected), the looks under the null scenario
(looks_null), the mean vector and covariance matrix of the statistics
(mean, sigma, sigma_null) and the event targets of the looks
(targets). The trial also stops at non-binding futility bounds, as in
gsDesign. summary() prints the expected values. The other results are
unchanged.ms_cond_power() computes the conditional power at an interim look of a
design with one endpoint, given the observed statistic of the look (or the
statistics of the looks up to it), under the design scenario, the null
hypothesis (the conditional type I error), the current trend, a given
hazard ratio or a given scenario, with the futility bounds of the later
interim looks (as gsCP() of gsDesign) and without them. print() shows
the result.plot() of an ms_power object draws the bounds of a design with one
endpoint on the scale of the statistic, the hazard ratio or the nominal
p-value, the cumulative probabilities of stopping for efficacy and for
futility and the cumulative type I error, or the survival functions of OS
and PFS of the groups of the design scenario, with the colors of the
Okabe-Ito palette, and returns the plotted values. graphics and grDevices
are imported.inst/reproduce/): the bounds, probabilities of stopping,
analysis times, numbers of failures and patients, expected study durations
and follow-up of the ECOG example of Kim and Tsiatis (1990), and the
conditional powers of Ortega-Villa et al. (2025).inst/validation/): the expected values and the probabilities
of stopping are compared with rpact::getPowerSurvival(),
lrstat::lrpower(), gsDesign::gsProbability(), the examples printed in
the rpact vignette and a patient-level simulation
(python/simulate_expected.py), and the conditional power with
gsDesign::gsCP() and the example printed in the gsDesign vignette.vignette("group-sequential") describes the expected
values, the conditional power and the plots, the introductory vignette
plots the survival functions of a design, and vignette("validation")
lists the new comparisons.inst/validation/validate_fastsurvival.R (V1-V4), the
death that defines a look driven by OS deaths was lost in some trials,
because the follow-up time cut - entry could be smaller than its time by
rounding (on average, about 0.1 to 0.3 deaths fewer than the target at
these looks). The comparisons now use the cut times (1 + 1e-12), and the
script checks that every trial has the target number of deaths and that
the log-rank Z agrees with survival::survdiff(). The package code is
unchanged.Language: en-US, and inst/WORDLIST lists
the names and terms accepted by spelling::spell_check_package(). The
help pages, vignettes, README and NEWS use American spelling.ms_power() notes that the normal approximation does not
describe the skewness of the log-rank statistic with unequal allocation and
few events (by simulation, a type I error of about 0.028 instead of 0.025
with 2:1 allocation and looks at 75 and 150 deaths).inst/validation/python/simulate_type1.py): the excess type I error of
V2 comes from this skewness and that of V7 is a chance deviation
(inst/validation/README.md).followup (ms_power()
with followup, and the searches of ms_size()): the time of the final
analysis, followup after the end of accrual, is no longer also searched
for from its expected number of events. The results are unchanged. The
gain is largest with switching from a calendar time, where these times
come from Newton's method.ms_size() with recycling of the level and with switching from
a calendar time, with expected values from
inst/validation/python/expected_size_stage3.py.inst/reproduce/ and
inst/validation/ of version 0.2.2 are reproduced without any numerical
difference.ms_model() gains switch_clock: with "switch", the death hazard after
a switch is a function of the time since the switch instead of the
post-progression clock ("same", the default).ms_model() gains switch_af, an accelerated failure time effect of the
switch: the remaining time after the switch is the remaining time without
switch divided by switch_af (the rank preserving structural failure time
model of Robins and Tsiatis 1991).ms_model() gains switching before progression: switch_pre (hazard of
switching while progression-free), prog_switch and death_switch_pre
(hazards of progression and death after such a switch). After a later
progression these patients die with the hazard death_switch (with
switch_af, switch_af * death_prog). ms_prob() then adds the column
progression_free_switched.ms_scenario() gains pfs_switch: PFS is followed up to progression or
death ("event", the default) or censored at a switch before progression
("censor").ms_model() gains dropout_pfs, a censoring of PFS only (for example the
end of tumor assessments). The PFS dropouts of ms_events() include it
and, with pfs_switch = "censor", the censoring at a switch.ms_scenario() gains switch_start, a calendar time before which nobody
switches (for example when switching is allowed only after an interim
analysis). The distribution of OS then depends on the entry time, and the
moments and covariances of the OS statistic integrate over the entry
time. Under the null hypothesis the score no longer has independent
increments, and the correlations between the looks come from the
per-patient influence functions. The OS statistic alone with
mean = "direct" is covered, at calendar times or at looks driven by OS
events; PFS is not affected. Two endpoints together give an error.ms_test() gains transition for mtp = "bonferroni": the level of a
rejected hypothesis is passed on to the other (graphical procedure of
Maurer and Bretz 2013, Algorithm 1), and gs_prob_mtp() gains
upper_recycled. The bounds after recycling are checked not to exceed the
bounds at the initial level at every look. With recycling, the table of
ms_power() gains the columns z_upper_recycled and p_upper_recycled.inst/reproduce/).lrstat::fseqbon() and of the bounds
with lrstat::getBound() (inst/validation/).variance = "null"). They now use the Genz-Bretz
algorithm with a fixed seed. Rectangles with one-sided limits only (no
futility bounds) and designs with at most eight looks per endpoint are
unchanged.variance = "alternative" or "studentized" and four or
more looks of an endpoint, the stopping probabilities, the power, the
futility bounds by beta spending and the familywise error rates under
null_scenarios were computed with the Miwa algorithm, which is
inaccurate for covariance matrices that are not those of statistics with
independent increments (errors of about 1e-3 with four looks and above 0.1
with six or more looks, found by comparison with exact values). Rectangle
probabilities of four or more coordinates with such a covariance matrix
now use the Genz-Bretz algorithm with a fixed seed, in gs_prob(),
gs_bounds() and gs_prob_mtp() as well. The default
variance = "null", the efficacy bounds, the type I error and designs with
at most three looks per endpoint are unchanged.DesignComplexSurvival.genz_abseps (formerly
DesignComplexSurvival.mtp_abseps); the default remains 1e-5.ms_test() gains mtp ("none", "bonferroni" or "fixed_sequence"),
weights and hierarchical ("overall" or "stagewise", procedures (b)
and (a) of Glimm et al. 2010), added after the existing arguments.
endpoints may name both endpoints in the order of testing, and sf_eff
and param_eff may differ between them. Each endpoint has its own
efficacy bounds; futility bounds are placed on the first endpoint.ms_looks() accepts one trigger per look ("os", "pfs" or
"calendar") and, through test, the endpoints tested at each look.ms_power() returns, for two endpoints, the power of each endpoint, the
probability of rejecting both and at least one hypothesis, and the
familywise error rate under the global null hypothesis and under
user-given partial null scenarios (null_scenarios). events takes the
final numbers of events named by endpoint, for example
c(pfs = 300, os = 220).ms_size() gains target ("first", "each", "both" or "any") and
null_scenarios; with looks driven by the events of both endpoints,
solve_for = "events" rounds up the final numbers of events of both.lr_cov() returns the joint distribution of the PFS and OS statistics
(endpoint = c("pfs", "os")). Under the null hypothesis their covariance
is that of Danzer et al. (2025, Theorem 1).variance = "studentized" in lr_moments(), lr_cov() and
ms_test(): the asymptotic covariance of the standardized statistic
itself, including the variability of the variance estimator and, through
trigger, of the analysis times driven by observed numbers of events. The
default remains variance = "null", and the results of the existing
options are unchanged.gs_prob_mtp(): rejection probabilities of the two
hypotheses under the Bonferroni and fixed-sequence procedures. Rectangles
of four or more coordinates over both endpoints use the Genz-Bretz
algorithm with a fixed seed (absolute error set by
options(DesignComplexSurvival.mtp_abseps = ...), default 1e-5); the
other probabilities use the Miwa algorithm as before. mvtnorm (>= 1.2-0)
is now required.print(), summary() and as.data.frame() methods handle two endpoints.inst/reproduce/).inst/validation/). The Python simulation of single endpoints
now counts the event at an event-driven analysis time in every trial.clock = "reset" or "forward")
(ms_model(), ms_fleischer()); piecewise uniform accrual by rates or by
proportions (ms_accrual()); piecewise exponential dropout by group.ms_surv(),
ms_prob()), expected events and dropouts over calendar time
(ms_events(), ms_event_time()).lr_moments(), lr_cov()), with the mean by the direct formula or the
Schoenfeld approximation and the covariance with unit variances or under
the alternative (Luo et al. 2019).gs_spend(), gs_bounds(), gs_prob()).ms_power()) and the number of events, sample
size, accrual duration or follow-up for a target power (ms_size()), with
event-driven or calendar-driven looks (ms_looks(), ms_test()).inst/validation/python/) and, when installed, with gsDesign, gsDesign2,
rpact and lrstat.inst/reproduce/) and compare the package with
patient-level simulations (FastSurvival and Python) and with PWEALL
(inst/validation/). Each folder writes its judgments to
results/summary.csv and results/summary.md.Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.