R/FastScreenP.R

Defines functions FastScreenP

Documented in FastScreenP

FastScreenP <-
function(pvalues,method="padjust",threshold=ifelse(method=="pvalue",0.1,0.5),adjmethod="BH"){
#method=padjust or method==pvalue
if(method=="padjust") pvalues <- p.adjust(pvalues,method=adjmethod)
wh <- which(pvalues <= threshold)
return(wh)
}
markvdwiel/ShrinkBayes documentation built on March 27, 2022, 7:47 p.m.