fdr_threshold: Function to compute the corresponding threshold (BY/BH) for...

View source: R/fdr_threshold.R

fdr_thresholdR Documentation

Function to compute the corresponding threshold (BY/BH) for controlling FDR

Description

Function to compute the corresponding threshold (BY/BH) for controlling FDR

Usage

fdr_threshold(pvals, fdr = 0.1, method = "bhq", reshaping_function = NULL)

Arguments

pvals

a vector of the feature statistics, AGCs

fdr

the pre-specified false discovery rate level

method

the test procedure applied to compute the threshold. The defult method to compute threshold is the the Standard Benjamini-Hochberg procedure.

reshaping_function

the default value for reshaping function can be referred by Benjamini & Yekutieli (2001) otherwise, the reshaping function can be referred by Ramdas et al (2017)

Value

The threshold value corresponding to the test procedure


mxxptian/GraceAKO documentation built on Oct. 5, 2022, 11:17 p.m.