Learn R Programming

adoptr (version 0.2.2)

GroupSequentialDesign-class: Group-sequential two-stage designs

Description

Group-sequential designs are a sub-class of the TwoStageDesign class with constant stage-two sample size. See TwoStageDesign for slot details. Any group-sequential design can be converted to a fully flexible TwoStageDesign (see examples section).

Usage

GroupSequentialDesign(n1, c1f, c1e, n2_pivots, c2_pivots, order = NULL,
  ...)

# S4 method for GroupSequentialDesign TwoStageDesign(n1, ...)

Arguments

n1

stage one sample size or GroupSequentialDesign object to convert (overloaded from TwoStageDesign)

c1f

early futility stopping boundary

c1e

early efficacy stopping boundary

n2_pivots

numeric of length one, stage-two sample size

c2_pivots

numeric vector, stage-two critical values on the integration pivot points

order

of the Gaussian uadrature rule to use for integration, set to length(c2_pivots) if NULL, otherwise first value of c2_pivots is repeated 'order'-times.

...

further optional arguments

See Also

TwoStageDesign for superclass and inherited methods

Examples

Run this code
# NOT RUN {
design <- GroupSequentialDesign(25, 0, 2, 25, c(1, 1.5, 2.5))
summary(design)

TwoStageDesign(design)

# }

Run the code above in your browser using DataLab