View source: R/weighted_quantile.R
weighted.quantile | R Documentation |
weighted.quantile()
produces weighted sample quantiles corresponding to the given probabilities.
weighted.quantile(
x,
w = NULL,
probs = seq(0, 1, 0.25),
na.rm = FALSE,
names = TRUE,
digits = 7L,
type = 1L,
...
)
x |
a numeric vector whose weighted sample quantiles are wanted. |
w |
a numeric vector of the sample weights for each value in |
probs |
a numeric vector of probabilities with values in |
na.rm |
logical. If |
names |
logical. If |
digits |
used only when |
type |
an integer between |
... |
further arguments passed to |
weighted.quantile()
is a wrapper function of stats::quantile()
for weighted quantiles.
For the weighted quantile, only the "type 1" quantile, the inverse of the empirical distribution function, is available.
This function is used in numeric.encoder()
to enable weights-based encoding.
weighted.quantile()
returns weighted sample quantiles corresponding to the given probabilities.
weighted.tabulate
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.