FDR_Control: Threshold for FDR-controlling

Description Usage Arguments Examples

View source: R/FDR_Control.R

Description

We develop a false discovery rate (FDR) control approach based on a large-scale association testing procedure with theoretical guarantees for FDR control under flexible correlation structures

Usage

1
FDR_Control(pv,alpha0)

Arguments

pv

numberic: numeric vector of p-values.

alpha0

numberic: significance level, defalut value is 0.05.

Examples

1
2
3
4
5
set.seed(123)
x <- rnorm(50, mean = c(rep(0, 25), rep(3, 25)))
p <- 2*pnorm(sort(-abs(x)))
## Calculate threshold for FDR-controlling
t=FDR_Control(pv=p,alpha0=0.05)

XiaoyuLiang/HCLCFC documentation built on Dec. 23, 2021, 12:15 a.m.