R/estimate.pi0.R

Defines functions estimate.pi0

Documented in estimate.pi0

estimate.pi0 <- function(pvalues, method, alpha = 0.05, lambda = 0.5){
    method <- tolower(method)
    matched.method <- match.arg(method, c("tst", "lsl", "storey"))
    if(matched.method == "tst"){
        return(pi0.tst(pvalues, alpha))
    } else if(matched.method == "lsl"){
        return(pi0.lsl(pvalues))
    } else if(matched.method == "storey"){
        return(pi0.tail.p(lambda, pvalues))
    }
}

Try the structSSI package in your browser

Any scripts or data that you put into this service are public.

structSSI documentation built on May 2, 2019, 11:26 a.m.