gamma_dist object.R/gamma_dist.R
inv_cdf.gamma_dist.RdMethod for obtaining the inverse cdf (quantile function) of a gamma_dist
object.
# S3 method for class 'gamma_dist'
inv_cdf(x, ...)A function that computes the quantile at probability p
x <- gamma_dist(shape = 2, rate = 1)
q <- inv_cdf(x)
q(0.5)
#> [1] 1.678347
q(0.95)
#> [1] 4.743865