R/inv_weibull_fun.R

Defines functions inv_weibull_fun

Documented in inv_weibull_fun

#' Inverse Weibull  function
#'
#' Inverse Weibull function
#' @param q Vector of probabilities.
#' @param p Vector of parameters p = c(alpha, beta).
#' @return \code{x} at each probability.
#' @seealso \code{\link{weibull_fun}}
#' @examples
#' yseq <- seq(0, 1, .01)
#' xseq <- inv_weibull_fun(yseq, c(2, 4))
#' curve <- data.frame(x = xseq, y = yseq)
#' ggplot(curve, aes(x = x, y = y)) + geom_line()
#' @export
inv_weibull_fun <- function(q, p) qweibull(q, p[2], p[1])

Try the quickpsy package in your browser

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

quickpsy documentation built on Oct. 2, 2019, 5:03 p.m.