seqgsphh {MultiGroupSequential}R 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

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

[Package MultiGroupSequential version 1.1.0 Index]