Description Usage Arguments See Also Examples

Computes a weighted median of a numeric vector

1 | ```
weighted.median(y, w)
``` |

`y` |
A numeric vector containing the values whose median is to be computed |

`w` |
A vector of length |

`weighted.mean`

, `weighted.fractile`

1 2 3 | ```
y <- 1:9
w <- c(rep(1,5), rep(2,4))
res <- weighted.median(y, w)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.