bonferroni.trimmed.simes.test {gMCP} | R Documentation |
Trimmed Simes test for intersections of two hypotheses and otherwise weighted Bonferroni-test
Description
Trimmed Simes test for intersections of two hypotheses and otherwise weighted Bonferroni-test
Usage
bonferroni.trimmed.simes.test(
pvalues,
weights,
alpha = 0.05,
adjPValues = FALSE,
verbose = FALSE,
...
)
Arguments
pvalues |
A numeric vector specifying the p-values. |
weights |
A numeric vector of weights. |
alpha |
A numeric specifying the maximal allowed type one error rate. If |
adjPValues |
Logical scalar. If |
verbose |
Logical scalar. If |
... |
Further arguments possibly passed by |
References
Brannath, W., Bretz, F., Maurer, W., & Sarkar, S. (2009). Trimmed Weighted Simes Test for Two One-Sided Hypotheses With Arbitrarily Correlated Test Statistics. Biometrical Journal, 51(6), 885-898.
Examples
bonferroni.trimmed.simes.test(pvalues=c(0.1,0.2,0.05), weights=c(0.5,0.5,0))
bonferroni.trimmed.simes.test(pvalues=c(0.1,0.2,0.05), weights=c(0.5,0.5,0), adjPValues=FALSE)