Quantile | R Documentation |
Compute weighted quantiles (Eurostat definition).
Quantile(x, weights = NULL, probs = seq(0, 1, 0.25),
na.rm = FALSE, names = TRUE, type = 7, digits = 7)
x |
a numeric vector. |
weights |
an optional numeric vector giving the sample weights. |
probs |
numeric vector of probabilities with values in |
na.rm |
a logical indicating whether missing values in |
names |
logical; if true, the result has a |
type |
an integer between 1 and 9 selecting one of the nine quantile algorithms detailed below to be used. Currently only |
digits |
used only when |
The implementation strictly follows the Eurostat definition.
A named numeric vector containing the weighted quantiles of values in
x
at probabilities probs
is returned.
Andreas Alfons, Matthias Templ, some tweaks Andri Signorell <andri@signorell.net>
Working group on Statistics on Income and Living Conditions (2004) Common cross-sectional EU indicators based on EU-SILC; the gender pay gap. EU-SILC 131-rev/04, Eurostat.
Median
, quantile
, QuantileCI
Quantile(d.pizza$temperature, rep(c(1:3), length.out=nrow(d.pizza)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.