View source: R/analysis_tools.R

Weighted quantiles

1 | ```
weighted.quantile(x, w, probs = seq(0, 1, 0.25), na.rm = TRUE)
``` |

`x` |
a vector of observations |

`w` |
a vector of weights |

`probs` |
the given probabilities for which we want to get quantiles |

`na.rm` |
should we remove missing values. |

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.