[R] quantile() with weights

Sundar Dorai-Raj sundar.dorai-raj at pdf.com
Fri Jun 9 21:36:36 CEST 2006



Wouter wrote:
> Hi list,
> 
> I'm looking for a way to calculate quantiles (such as in quantile()), but 
> with the ability to assign a different weight to each member of the sample 
> vector.
> 
> It is possible to write it out completely, but maybe there is a dedicated 
> function out somewhere...
> 
> cheers
> 
> Wouter
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

See ?wtd.quantile in package Hmisc.

--sundar



More information about the R-help mailing list