Returns a function that computes quantiles of the beta distribution.

# S3 method for class 'beta_dist'
inv_cdf(x, ...)

Arguments

x

A beta_dist object.

...

Additional arguments (not used).

Value

A function function(p, lower.tail = TRUE, log.p = FALSE, ...) returning the quantile at probability p.

Examples

x <- beta_dist(2, 5)
q <- inv_cdf(x)
q(0.5)
#> [1] 0.26445
q(0.95)
#> [1] 0.5818034