R/siegmundLambda.R

Defines functions siegmundLambda

#' @importFrom stats pnorm dnorm
siegmundLambda <- function(threshold,windowSize,nProbe){
    m   <- nProbe
    w   <- windowSize
    z   <- threshold
    y   <- z*sqrt(2/w)/2
    lambda <- m*z*(w^-1)* stats::dnorm(z)*(1/y)*(stats::pnorm(y) - 
                                    0.5)/(y*stats::pnorm(y) + stats::dnorm(y))
    return(lambda)
}

Try the DMRScan package in your browser

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

DMRScan documentation built on Nov. 8, 2020, 8:10 p.m.