| gs_bounds | R Documentation |
Computes one-sided efficacy bounds by alpha spending and, optionally, futility bounds that are fixed or obtained by beta spending, for a vector of standardized statistics with a multivariate normal distribution.
gs_bounds(
info_frac,
alpha = 0.025,
sf_eff = "OF",
param_eff = NULL,
futility = c("none", "fixed", "beta"),
fut_bound = NULL,
sf_fut = "OF",
param_fut = NULL,
beta = 0.1,
binding = FALSE,
mean = NULL,
corr = NULL,
sigma_alt = NULL
)
info_frac |
Information fractions used for spending (strictly increasing and ending at 1). |
alpha |
One-sided type I error. |
sf_eff, param_eff |
Alpha spending function and its parameter (see
|
futility |
|
fut_bound |
Fixed futility bounds on the Z scale at looks 1 to K - 1
(for |
sf_fut, param_fut |
Beta spending function and its parameter. |
beta |
Total type II error for beta spending. |
binding |
Whether the futility bounds are binding. |
mean |
Mean vector of the statistics under the alternative
(required for |
corr |
Correlation matrix of the statistics under the null
hypothesis. Defaults to |
sigma_alt |
Covariance matrix of the statistics under the
alternative. Defaults to |
The efficacy bound at look k solves, under the null hypothesis (mean 0,
correlation corr), the equation that the probability of
continuing to look k and then crossing the bound equals the alpha spent
at look k. With binding = TRUE the continuation region at the
earlier looks includes the futility bounds; with binding = FALSE
the futility bounds are ignored for the efficacy bounds.
With futility = "beta", the futility bound at look k solves, under
the alternative (mean mean, covariance sigma_alt), the
equation that the probability of continuing to look k and then falling
below the bound equals the beta spent at look k. The mean may take any
value at each look, so that non-proportional hazards are allowed. A
futility bound above the efficacy bound is set to the efficacy bound. At
the last look the futility bound equals the efficacy bound. With
binding = TRUE, a futility bound set to the efficacy bound at an
interim look stops every trial at that look, so that no alpha can be
spent at the later looks; the function then stops with an error that
names that look.
The probabilities are computed as in gs_prob: with the Miwa
algorithm for rectangles of at most three coordinates and for covariance
matrices of Markov sequences, such as the default corr, except for
rectangles of nine or more coordinates with two finite limits for some
coordinate (nine or more looks with futility bounds at the earlier looks),
and with the Genz-Bretz algorithm otherwise (for example for
sigma_alt of variance = "alternative" or "studentized"
with four or more looks).
A data frame with one row per look: look,
info_frac, cumulative alpha_spent and beta_spent,
the efficacy bound upper, the futility bound lower
(-Inf when there is none) and the one-sided nominal p-value of
the efficacy bound nominal_p.
Lan KKG, DeMets DL (1983). Discrete sequential boundaries for clinical trials. Biometrika 70:659-663.
gs_spend, gs_prob,
ms_power
# O'Brien-Fleming type efficacy bounds at 50, 75 and 100 percent
gs_bounds(c(0.5, 0.75, 1))
# Non-binding futility by beta spending with a delayed effect
gs_bounds(c(0.5, 0.75, 1), futility = "beta", sf_fut = "HSD",
param_fut = -2, mean = c(0.8, 1.9, 2.8))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.