inv_quantile returns the quantile(s) for a specific value or vector of values.

inv_quantile(y, values, digits = NULL)

Arguments

y

a numeric vector/variable.

values

the values or vector of specific values in y for which you would like the to know the quantiles

digits

determines the how many digits the result is rounded to

See also

Author

Craig P. Hutton, Craig.Hutton@gov.bc.ca

Examples

y <- c(1:100)
inv_quantile(y = y, values = c(2, 25, 50, 75, 95), digits = 2)
#> [1] 0.02 0.25 0.50 0.75 0.95