how to calculate the quantile of the weighted data

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

how to calculate the quantile of the weighted data

Jing Yang
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


______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: how to calculate the quantile of the weighted data

Frank Harrell
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


______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Frank Harrell
Department of Biostatistics, Vanderbilt University
Reply | Threaded
Open this post in threaded view
|

Re: how to calculate the quantile of the weighted data

Brian S Cade
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:  [hidden email]
tel:  970 226-9326



Frank E Harrell Jr <[hidden email]>
Sent by: [hidden email]
03/10/2006 04:07 PM

To
[hidden email]
cc
r-help <[hidden email]>
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

______________________________________________
[hidden email] 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]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html