seqgsphh: Sequential generalized Hochberg and Hommel procedures based...

View source: R/seqgsphh.r

seqgsphhR Documentation

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"
)

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"

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)

Author(s)

Xiaodong Luo

Examples

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")

MultiGroupSequential documentation built on Aug. 9, 2023, 5:10 p.m.