Learn R Programming

MultiGroupSequential (version 1.1.0)

seqgsphh: Sequential generalized Hochberg and Hommel procedures based on group-sequential p-values

Description

seqgsphh() implements the sequential Generalized Hochberg and Hommel procedures based on group-sequential p-values.

Usage

seqgsphh(
  pm = matrix(rep(c(0.03, 0.04, 0.01), times = 2), ncol = 3, nrow = 2),
  alpha = 0.025,
  epsilon = 1e-10,
  precision = 10,
  method = "Hochberg"
)

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.

epsilon

Numeric scalar indicating the lower bound for alpha.

precision

Integer scalar for precision of the values, obsolete for backward compatibility.

method

"Hochberg" or "Hommel"

Author

Xiaodong Luo

Examples

Run this code
pm <- matrix(rep(c(0.03, 0.04, 0.01), times = 2), ncol = 3, nrow = 2)
seqgsphh(pm = pm, alpha = 0.025, method = "Hochberg")
seqgsphh(pm = pm, alpha = 0.025, method = "Hommel")

Run the code above in your browser using DataLab