spendingfun {MultiGroupSequential}R Documentation

Calculate alpha spending function

Description

spendingfun() calculates the alpha spending function.

Usage

spendingfun(alpha, fractions = seq(0.2, 1, by = 0.2), family = "OBF", rho = 1)

Arguments

alpha

Numeric scalar of the overall alpha to be spent.

fractions

Numeric vector of the sequence of information fractions. All elements should be between 0 and 1 with the last one being exactly 1.

family

Character scalar for the family of spending functions, one of "OBF", "pocock", "power".

rho

Numeric scalar of auxiliary parameter for O'Brien-Fleming and power family.

Details

Note that the OBF and Pocock spending functions are not the originally proposed ones, they are the modified ones that closely resemble the original versions. That being said, you might still see some differences.

Value

List with an element named aseq for the alpha spending sequence.

Author(s)

Xiaodong Luo

Examples

spendingfun(
  alpha = 0.025,
  fractions = seq(0.2, 1, by = 0.2),
  family = "OBF",
  rho = 1
)

[Package MultiGroupSequential version 1.1.0 Index]