Learn R Programming

algebraic.dist (version 0.9.1)

inv_cdf.gamma_dist: Method for obtaining the inverse cdf (quantile function) of a gamma_dist object.

Description

Method for obtaining the inverse cdf (quantile function) of a gamma_dist object.

Usage

# S3 method for gamma_dist
inv_cdf(x, ...)

Value

A function that computes the quantile at probability p

Arguments

x

The gamma_dist object

...

Additional arguments (not used)

Examples

Run this code
x <- gamma_dist(shape = 2, rate = 1)
q <- inv_cdf(x)
q(0.5)
q(0.95)

Run the code above in your browser using DataLab