R/prpcauchy.R

#' @name ReversalPowerCauchy
#' @examples
#' prpcauchy(1, 1, 3, 4)
#' @export
prpcauchy <- function(q, lambda = 1, mu = 0, sigma = 1, lower.tail = TRUE, log.p = FALSE){
  p = 1 - (pcauchy((-q+mu)/sigma)**lambda)
  if (lower.tail == FALSE) {
    p = 1 - p
  }
  if (log.p == TRUE) {
    p = log(p)
  }
  return(p)
}

Try the powdist package in your browser

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

powdist documentation built on May 1, 2019, 10:11 p.m.