| ms_test | R Documentation |
Defines the one-sided log-rank test, the efficacy and futility bounds and the approximation of the distribution of the statistics.
ms_test(
alpha = 0.025,
endpoints = "os",
sf_eff = "OF",
param_eff = NULL,
futility = c("none", "fixed", "beta"),
fut_bound = NULL,
fut_scale = c("z", "hr"),
sf_fut = "OF",
param_fut = NULL,
beta = 0.1,
binding = FALSE,
mean = c("direct", "schoenfeld"),
variance = c("null", "alternative", "studentized"),
spending_time = c("events", "information"),
mtp = c("none", "bonferroni", "fixed_sequence"),
weights = NULL,
hierarchical = c("overall", "stagewise"),
transition = c(0, 0)
)
alpha |
One-sided type I error (with two endpoints, the familywise error rate). |
endpoints |
Tested endpoint, |
sf_eff, param_eff |
Alpha spending function and its parameter (see
|
futility |
|
fut_bound |
Fixed futility bounds at the interim looks (for
|
fut_scale |
Scale of |
sf_fut, param_fut |
Beta spending function and its parameter. |
beta |
Total type II error for beta spending in
|
binding |
Whether the futility bounds are binding. |
mean |
Approximation of the mean of the statistic:
|
variance |
Approximation of the covariance of the statistics:
|
spending_time |
|
mtp |
Multiple testing procedure: |
weights |
Bonferroni weights of the two endpoints (positive, adding up to 1; defaults to equal weights). |
hierarchical |
|
transition |
For |
The efficacy bounds are obtained by alpha spending under the null
hypothesis. The correlation of the statistics under the null hypothesis
is taken as sqrt(d_j / d_k), where d are the expected numbers of
events of the tested endpoint at the looks; it is exact under the null
hypothesis when the looks are driven by the events of the tested
endpoint. The spending time is the event fraction
(spending_time = "events") or the information fraction under the
design scenario ("information").
Futility bounds may be fixed, on the Z scale (fut_scale = "z") or
on the hazard ratio scale (fut_scale = "hr", converted with
z = -log(hr) sqrt(p0 p1 d)), or obtained by beta spending under
the design scenario. With binding = FALSE the efficacy bounds
ignore the futility bounds.
With two endpoints, each endpoint has its own efficacy bounds, computed as
above from the looks at which it is tested (see ms_looks).
With mtp = "bonferroni", the endpoint k is tested at level
weights[k] * alpha. By default the levels are not recycled after a
rejection. With transition = c(g12, g21), the level of a rejected
hypothesis is passed on to the other in the graphical procedure of Maurer
and Bretz (2013, Algorithm 1): after the first hypothesis has been
rejected, the second is tested at level
(weights[2] + g12 * weights[1]) * alpha, and after the second has
been rejected, the first at level
(weights[1] + g21 * weights[2]) * alpha. The bounds at the level
after recycling are computed with the spending function of the endpoint
for all its looks (Maurer and Bretz 2013, Section 3.2). The procedure
controls the familywise error rate when the nominal levels of the spending
functions do not decrease with the level (Maurer and Bretz 2013, Section
3.1). The spending functions of gs_spend other than
"OF" are proportional to the level and have this property, and
"OF" has it for levels below 0.318 (Maurer and Bretz 2013, p. 313).
ms_power checks at every look that the bounds after
recycling do not exceed the bounds at the initial level and stops with an
error otherwise. With binding futility bounds, the bounds of the first
endpoint after recycling are computed with the futility bounds of the
initial level as binding bounds.
A hypothesis rejected at an analysis makes the other be tested at its
level after recycling at the same analysis (see gs_prob_mtp).
With mtp = "fixed_sequence", both endpoints are tested at level
alpha and the second endpoint is tested only after the first has
been rejected: with hierarchical = "overall" at the analysis at
which the first is rejected and at its later looks until it is rejected
(procedure (b) of Glimm et al. 2010), and with "stagewise" only at
the analysis at which the first is rejected, where the trial stops
(procedure (a) of Glimm et al. 2010, Tamhane et al. 2010). The bounds of
the second endpoint do not depend on the correlation between the
endpoints; with them the familywise error rate is at most alpha
(Glimm et al. 2010, Tamhane et al. 2010). Futility bounds are placed on
the first endpoint only: the trial stops when its statistic falls below
the futility bound at an interim look at which it has not been rejected.
See gs_prob_mtp for the stopping rules.
The efficacy bounds and the non-binding type I error (with two endpoints,
the familywise error rate under the global null hypothesis) do not depend
on variance; the power, the futility bounds by beta spending and
the familywise error rate under null_scenarios of
ms_power do. In the simulations of inst/validation/
with PFS and OS tested together, the powers with "null" and
"studentized" agreed with the simulated powers within the Monte
Carlo error, "alternative" gave slightly larger powers, and
"studentized" agreed best with the simulated standard deviations
and correlations of the statistics.
With "alternative" and "studentized", the covariance matrix
of the statistics of an endpoint is not that of independent increments,
and the probabilities over four or more of its looks are computed with the
Genz-Bretz algorithm (see gs_prob).
An object of class ms_test.
Glimm E, Maurer W, Bretz F (2010). Hierarchical testing of multiple endpoints in group-sequential trials. Statistics in Medicine 29:219-228.
Maurer W, Bretz F (2013). Multiple testing in group sequential trials using graphical approaches. Statistics in Biopharmaceutical Research 5:311-320.
Tamhane AC, Mehta CR, Liu L (2010). Testing a primary and a secondary endpoint in a group sequential design. Biometrics 66:1174-1184.
ms_power, gs_bounds,
gs_prob_mtp
ms_test()
ms_test(futility = "beta", sf_fut = "HSD", param_fut = -2)
ms_test(futility = "fixed", fut_bound = 1, fut_scale = "hr")
# PFS first, then OS, with Pocock-type spending for OS
ms_test(endpoints = c("pfs", "os"), sf_eff = c("OF", "Pocock"),
mtp = "fixed_sequence")
ms_test(endpoints = c("pfs", "os"), mtp = "bonferroni", weights = c(0.8, 0.2))
# The same with the level of PFS passed on to OS after the rejection of
# PFS, and the level of OS to PFS after the rejection of OS
ms_test(endpoints = c("pfs", "os"), mtp = "bonferroni", weights = c(0.8, 0.2),
transition = c(1, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.