weighted_median {robsurvey} | R Documentation |
Weighted Median
Description
Weighted population median.
Usage
weighted_median(x, w, na.rm = FALSE)
Arguments
x |
|
w |
|
na.rm |
|
Details
Weighted sample median; see weighted_quantile
for more
information.
Value
Weighted estimate of the population median
See Also
Overview (of all implemented functions)
Examples
head(workplace)
weighted_median(workplace$employment, workplace$weight)
[Package robsurvey version 0.6 Index]