sdminp: This function calculates the Step Down minP method.

View source: R/sdminp_calculation.R

sdminpR Documentation

This function calculates the Step Down minP method.

Description

It implement the improved step-down minP algorithm by Ge et al, 2003 (box 4)

Usage

sdminp(res_ob, res_perm)

Arguments

res_ob

is a numeric vectors of statistics

res_perm

is a matrix with each colum is a permuated statistics with the same length as res_ob

Value

a numeric vector adjusted pvalues

References

Ge, Y., Dudoit, S., & Speed, T. P. (2003). Resampling-based multiple testing for microarray data analysis. Test, 12(1), 1–77. https://doi.org/10.1007/BF02595811

Examples

ob=rnorm(10,2,2)
perm=matrix(rnorm(100,2,2),ncol=10,nrow=10)
sdminp(ob,perm)

mqzhanglab/wHC documentation built on April 1, 2022, 6:28 p.m.