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

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

Arguments

x

The chi_squared object

...

Additional arguments (not used)

Value

A function that computes the quantile at probability p

Examples

x <- chi_squared(5)
q <- inv_cdf(x)
q(0.5)
#> [1] 4.35146
q(0.95)
#> [1] 11.0705