Cumulative error spent at information fractions t for a total
(one-sided) error alpha.
Usage
gs_spend(
t,
alpha = 0.025,
type = c("OF", "Pocock", "HSD", "power", "user"),
param = NULL
)Details
The available types are
"OF": Lan-DeMets spending function of O'Brien-Fleming type,2 - 2 pnorm(qnorm(1 - alpha / 2) / sqrt(t))."Pocock": Lan-DeMets spending function of Pocock type,alpha log(1 + (exp(1) - 1) t)."HSD": Hwang-Shih-DeCani family with parameterparam(gamma),alpha (1 - exp(-gamma t)) / (1 - exp(-gamma)), andalpha tfor gamma = 0."power": Kim-DeMets power family with parameterparam(rho),alpha t^rho."user": cumulative proportions ofalphagiven inparam, one value per element oft.
The same functions are used for beta spending, with alpha replaced
by the total type II error.
References
Lan KKG, DeMets DL (1983). Discrete sequential boundaries for clinical trials. Biometrika 70:659-663.