wtd.iqr | R Documentation |
Compute weighted Interquartile range (iqr)
wtd.iqr (x, na.rm = FALSE, weight=NULL)
x |
Vector of data, same length as |
na.rm |
Logical: Should NAs be stripped before computation proceeds? |
weight |
Vector of weights. If NULL, the default, weights are not used. |
Uses a simple algorithm based on sorting.
Returns an empirical interquartile range from a weighted sample.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.