# Quantiles of a weighted cdf

### Description

A weighted cdf is calculated and quantiles are evaluated. Missing values are discarded.

### Usage

1 | ```
weighted.quantile(x, w, prob = 0.5, plot = FALSE)
``` |

### Arguments

`x` |
vector of data |

`w` |
vector of (sampling) weights |

`prob` |
The probability for the quantile |

`plot` |
if |

### Details

Weighted linear interpolation in case of non-unique inverse. Gives a warning when the contribution of the weight of the smallest observation to the total weight is larger than `prob`

.

### Value

The quantile for proporiont `prob`

.

### Note

No variance calculation.

### Author(s)

Beat Hulliger

### See Also

`svyquantile`

### Examples

1 2 3 4 |

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.