fdrtool
https://cran.r-project.org/web/packages/fdrtool/index.html
https://github.com/cran/fdrtool/blob/master/R/fdrtool.R
https://www.rdocumentation.org/packages/fdrtool/versions/1.2.15/topics/pvalues
https://rdrr.io/cran/fdrtool/man/pvalues.html
https://www.jianshu.com/p/16d160afd140
if ( length(x) < 200 ) warning("There may be too few input test statistics for reliable FDR calculations!")
library("fdrtool") # load fdrtool library
data(pvalues) # load data set
fdrtool(pvalues, statistic="pvalue") # estimate density and distribution function, # and compute corresponding (local) false discovery rates
fdr$qval # estimated Fdr values
fdr$lfdr#estimated local fdr
函数介绍:
该函数计算的基本思想就是使用经验贝叶斯方法,假设研究的对象分为两部分(null, non-null),可理解为显著和不显著两部分,从二者的混合分布中计算出null部分所占的比例。此外,开发该包的作者集成了多种方法,可分析的对象种类比较多,使其使用起来也比较方便。

浙公网安备 33010602011771号