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

Description Usage Arguments Details Value Author(s) References Examples

View source: R/Hommel.R

Description

Hommel's step-up-procedure.

Usage

1
hommel(pValues, alpha, silent=FALSE)

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.

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(s)

HackNiklas

References

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

Examples

1
2
3
pval <- c(runif(50), runif(50, 0, 0.01))
result 	<- hommel(pval, 0.05)
result 	<- hommel(pval, 0.05, silent = TRUE)

Example output

Loading required package: mvtnorm


		Hommel's (1988) step-up Procedure

Number of hyp.:	 100 
Number of rej.:	 2 
  rejected      pValues
1       70 0.0003457795
2       98 0.0006927315

mutoss documentation built on May 2, 2019, 5:56 p.m.