Learn R Programming

TFactSR (version 0.99.0)

calculateFDRBH: calculates FDR by Benjamini and Hochberg method

Description

This function calculates FDR based on BH.

Usage

calculateFDRBH(df)

Value

data.frame

Arguments

df

a data frame containng p-values

Author

Atsushi Fukushima

References

Benjamini Y and Hochberg Y, J Roy Stat Soc B 57: 289?300 (1995)

Examples

Run this code
p.value <- runif(10)/(1:10)
df <- data.frame(p.value = p.value)
res <- calculateFDRBH(df)

Run the code above in your browser using DataLab