R/qpareto2.R

qpareto2 <-
function(p, scale = 1, shape = 1)
{
    if (any(p <= 0) || any(p >= 1)) stop("bad input for argument 'p'")
    q <- scale*(-1 + (1-p)^(-1/shape))
    q
}

Try the CaDENCE package in your browser

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

CaDENCE documentation built on May 2, 2019, 6:05 a.m.