R/pllogistic.R

#' @name llogistic
#' @examples pllogistic(0.7, 0.5, 2)
#' @export
pllogistic = function(q, m, phi, lower.tail = TRUE, log.p = FALSE) {
  p = 1/(1 + (m * (1 - q)/(q * (1 - m)))^phi)
  if (lower.tail == FALSE) {
    p = 1 - p
  }
  if (log.p == TRUE) {
    p = log(p)
  }
  return(p)
}

Try the llogistic package in your browser

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

llogistic documentation built on May 2, 2019, 6:52 a.m.