False discovery rate (FDR) estimation from local FDR
EstFDR(fdr)
fdr
vector of local FDR
the estimate of the FDR
lfdr <- c(runif(900), rbeta(100, 1, 10)) FDR <- EstFDR(lfdr) sum(FDR<0.05)