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
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
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the
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