Skip to contents

This function calculates the \(k\)-th percentile of a ddf distribution.

Usage

percentile(dist, k, method = "all")

Arguments

dist

A ddf object, the distribution.

k

An integer between 0 and 100, exclusive.

method

A character specifying the output format.

Value

A numeric vector.

Details

For details consult the details of quantiles() and recall that a \(k\)-th percentile is a \(k/100\)-quantile and vice versa.

See also

Other quantiles: decile(), quantiles(), quartile()

Examples

percentile(bin(10, 0.3), 30)
#> [1] 2