You could also consider using the quantreg package.  The linear quantile 
regression estimator rq() in this package has a weights option and using 
this
linear model approach allows you to include covariates if necessary and 
perform hypothesis tests and estimate confidence intervals.  Nonlinear and 
nonparametric smoothing models also are available.

Brian

Brian S. Cade

U. S. Geological Survey
Fort Collins Science Center
2150 Centre Ave., Bldg. C
Fort Collins, CO  80526-8818

email:  brian_cade@usgs.gov
tel:  970 226-9326



Frank E Harrell Jr <f.harrell@vanderbilt.edu> 
Sent by: r-help-bounces@stat.math.ethz.ch
03/10/2006 04:07 PM

To
yangj@student.ethz.ch
cc
r-help <r-help@stat.math.ethz.ch>
Subject
Re: [R] how to calculate the quantile of the weighted data






Jing Yang wrote:
> Dear R-users,
> 
> Does anyone have an idea of how to calculate the quantile of the 
weighted data?
> Any suggestion will be appreciated!
> 
> Best,Jing

library(Hmisc)
?wtd.quantile

-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                     Department of Biostatistics   Vanderbilt University

______________________________________________
R-help@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

	[[alternative HTML version deleted]]


