seqqvalhh | R Documentation |
Sequential generalized Hochberg and Hommel procedures based on q-values
seqqvalhh(
pm = matrix(rep(c(0.03, 0.04, 0.01), times = 2), ncol = 3, nrow = 2),
alpham = matrix(rep(c(0.02, 0.03, 0.05), each = 2), ncol = 3, nrow = 2),
epsilon = 1e-10,
precision = 10,
method = "Hochberg"
)
pm |
Matrix of group-sequential p-values for different hypotheses (in row) at different times (in column). |
alpham |
Matrix of alpha spending corresponding to the p-values |
epsilon |
Numeric scalar indicating the lower bound for alpha. |
precision |
Integer scalar for precision of the values, obsolete for backward compatibility. |
method |
Character scalar "Hochberg" or "Hommel". |
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);
alphaused
: alpha levels actually used for each endpoint (row) at each
timepoint (column).
Xiaodong Luo
pm <- matrix(rep(c(0.03, 0.04, 0.01), times = 2), ncol = 3, nrow = 2)
alpham <- matrix(rep(c(0.02, 0.03, 0.05), each = 2), ncol = 3, nrow = 2)
seqqvalhh(pm = pm, alpham = alpham, method = "Hochberg")
seqqvalhh(pm = pm, alpham = alpham, method = "Hommel")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.