Skip to contents

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

Usage

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

Arguments

dist

A ddf object, the distribution.

k

An integer between 0 and 10, 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 decile is a \(k/10\)-quantile and vice versa.

See also

Other quantiles: percentile(), quantiles(), quartile()

Examples

decile(bin(10, 0.3), 3)
#> [1] 2