Learn R Programming

MultiGroupSequential (version 1.1.0)

seqgspgx: Sequential graphical procedure based on group-sequential p-values

Description

seqgspgx() implements the sequential graphical procedure for multiple hypotheses based on group-sequential p-values.

Usage

seqgspgx(
  pm = matrix(rep(c(0.03, 0.04, 0.01), times = 2), ncol = 3, nrow = 2),
  alpha = 0.025,
  W = c(0.6, 0.4),
  G = rbind(c(0, 1), c(1, 0))
)

Value

List with elements

  • rejected: the index set of rejected hypotheses

  • decisionsm: rejection decision for each endpoint (row) at each timepoint (column)

  • cumdecisionsm: cumulative rejection decision for each endpoint (row) at each timepoint (column)

Arguments

pm

Numeric matrix of group-sequential p-values for different hypotheses (in row) at different times (in column).

alpha

Numeric scalar of the overall family-wise error rate.

W

Numeric vector of the weights of the graph.

G

Numeric transition matrix of the graph.

Author

Xiaodong Luo

Examples

Run this code
seqgspgx(
  pm = matrix(rep(c(0.03, 0.04, 0.01), times = 2), ncol = 3, nrow = 2),
  alpha = 0.025,
  W = c(0.6, 0.4),
  G = rbind(c(0, 1), c(1, 0))
)

Run the code above in your browser using DataLab