Learn R Programming

algebraic.dist (version 0.9.1)

inv_cdf: Generic method for obtaining the quantile (inverse cdf) of an object.

Description

Generic method for obtaining the quantile (inverse cdf) of an object.

Usage

inv_cdf(x, ...)

Value

A function computing the quantile (inverse CDF).

Arguments

x

The object to obtain the quantile of.

...

Additional arguments to pass.

Examples

Run this code
x <- normal(0, 1)
Q <- inv_cdf(x)
Q(0.5)   # 0 (median of standard normal)
Q(0.975) # approximately 1.96

Run the code above in your browser using DataLab