R/normalize.R

get.rho.hat <- function(phat, d){
    get.rho.hat.help <- function(phat, d){
        if(phat > 1 | phat < 0){
            stop("phat value out of range")
        }
        sqrt(1 - qbeta(phat, d/2, 1/2))
    }
    sapply(phat, get.rho.hat.help, d=d)
}

Try the pipeGS package in your browser

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

pipeGS documentation built on May 2, 2019, 5:58 a.m.