View source: R/dist_quantiles.R
dist_quantiles | R Documentation |
A distribution parameterized by a set of quantiles
dist_quantiles(values, quantile_levels)
values |
A vector (or list of vectors) of values. |
quantile_levels |
A vector (or list of vectors) of probabilities
corresponding to When creating multiple sets of |
A vector of class "distribution"
.
dist_quantiles(1:4, 1:4 / 5)
dist_quantiles(list(1:3, 1:4), list(1:3 / 4, 1:4 / 5))
dstn <- dist_quantiles(list(1:4, 8:11), c(.2, .4, .6, .8))
dstn
quantile(dstn, p = c(.1, .25, .5, .9))
median(dstn)
# it's a bit annoying to inspect the data
distributional::parameters(dstn[1])
nested_quantiles(dstn[1])[[1]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.