Learn R Programming

mutoss (version 0.1-12)

hommel: Hommel's (1988) step-up-procedure

Description

Hommel's step-up-procedure.

Usage

hommel(pValues, alpha, silent=FALSE)

Value

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 errorControl, containing the type of error controlled by the function and the level alpha.

Author

HackNiklas

Arguments

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.

Details

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.

References

G. Hommel (1988). A stagewise rejective multiple test procedure based on a modified Bonferroni test. Biometrika 75, pp. 383-386

Examples

Run this code
pval <- c(runif(50), runif(50, 0, 0.01))
result 	<- hommel(pval, 0.05)
result 	<- hommel(pval, 0.05, silent = TRUE)

Run the code above in your browser using DataLab