weighted_IQR | R Documentation |
Weighted (normalized) interquartile range
weighted_IQR(x, w, na.rm = FALSE, constant = 0.7413)
x |
|
w |
|
na.rm |
|
constant |
|
By default, the weighted IQR is normalized to be an unbiased estimate of
scale at the Gaussian core model. If normalization is not wanted, put
constant = 1
.
Weighted IQR
Overview (of all implemented functions)
head(workplace)
# normalized weighted IQR (default)
weighted_IQR(workplace$employment, workplace$weight)
# weighted IQR (without normalization)
weighted_IQR(workplace$employment, workplace$weight, constant = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.