hommel | R Documentation |
Hommel's step-up-procedure.
hommel(pValues, alpha, silent=FALSE)
pValues |
pValues to be used. They need a independent structure. |
alpha |
The level at which the FWER should be controlled |
silent |
Logical. If true, any output on the console will be suppressed. |
The method is applied to p-values. It controls the FWER in the strong sense when the hypothesis tests are independent or when they are non-negatively associated.
The method is based upon the closure principle and the Simes test.
A list containing:
adjPValues |
A numeric vector containing the adjusted pValues |
rejected |
A logical vector indicating which hypotheses are rejected |
criticalValues |
A numeric vector containing critical values used in the step-up-down test. |
errorControl |
A Mutoss S4 class of type |
HackNiklas
G. Hommel (1988). A stagewise rejective multiple test procedure based on a modified Bonferroni test. Biometrika 75, pp. 383-386
pval <- c(runif(50), runif(50, 0, 0.01))
result <- hommel(pval, 0.05)
result <- hommel(pval, 0.05, silent = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.