R/weighted_median.R

Defines functions weighted_median

Documented in weighted_median

# weighted median
weighted_median <- function(x, w, na.rm = FALSE)
{
    weighted_quantile(x, w, 0.5, na.rm)
}

Try the robsurvey package in your browser

Any scripts or data that you put into this service are public.

robsurvey documentation built on Jan. 6, 2023, 5:09 p.m.