R/qpareto.R

qpareto <- function (p, shape, scale = min(p), lower.tail = TRUE, log.p = FALSE) {
  shape[shape <= 0] <- NaN
  scale[scale <= 0] <- NaN
  if (log.p) p <- exp(p)
  if (!lower.tail) p <- 1 - p
  scale/(1 - p)^(1/shape)
}

Try the sads package in your browser

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

sads documentation built on May 2, 2019, 1:56 p.m.