MultiGroupSequential

CRAN status

It is often challenging to strongly control the family-wise type-1 error rate in the group-sequential trials with multiple endpoints (hypotheses). The inflation of type-1 error rate comes from two sources (1) repeated testing individual hypothesis and (2) simultaneous testing multiple hypotheses. The MultiGroupSequential package is intended to help researchers to tackle this challenge.

The procedures provided include the sequential procedures described in Luo and Quan (2023) and the graphical procedure proposed by Maurer and Bretz (2013). Luo and Quan (2023) describes three procedures and functions to implement these procedures

  1. seqgspgx() implements a sequential graphical procedure based on the group-sequential p-values.
  2. seqgsphh() implements a sequential Hochberg/Hommel procedure based on the group-sequential p-values.
  3. seqqvalhh() implements a sequential Hochberg/Hommel procedure based on the q-values.

In addition, seqmbgx() implements the sequential graphical procedure described in Maurer and Bretz (2013).

Installation

You can install the released version of MultiGroupSequential from CRAN:

install.packages("MultiGroupSequential")

Usage

For example, to use the sequential graphical procedure based on group sequential p-values.

The procedures implemented here will usually give output list with elements:

library(MultiGroupSequential)
seqgspgx(
  pm = rbind(c(0.02, 0.03, 0.01), c(0.03, 0.04, 0.01)),
  alpha = 0.025,
  W = c(0.6, 0.4),
  G = rbind(c(0, 1), c(1, 0))
)
#> $rejected
#> [1] 1 2
#> 
#> $decisionsm
#>      [,1] [,2] [,3]
#> [1,]    0    0    1
#> [2,]    0    0    1
#> 
#> $cumdecisionsm
#>      [,1] [,2] [,3]
#> [1,]    0    0    1
#> [2,]    0    0    1