Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: TR: weighted median with Stata10


From   "Roger B. Newson" <[email protected]>
To   [email protected]
Subject   Re: st: TR: weighted median with Stata10
Date   Mon, 10 Jun 2013 16:51:10 +0100

One possibility might be the -rcentile- package, which users can download from SSC, and which computes confidence intervals for medians (and other percentiles) allowing for clustering and/or sampling-probability weights.

The -rcentile- package requires the -somersd-, -scsomersd- and -expgen- packages in order to work. If you are using Stata Version 10, then you should download the Stata Version 10 versions of these packages from my website by typing, in Stata,

net from "http://www.imperial.ac.uk/nhli/r.newson/stata10/";

and downloading the Stata Version 10 versions of all these packages.

I hope this helps.

Best wishes

Roger


Roger B Newson BSc MSc DPhil
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton Campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
UNITED KINGDOM
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: [email protected]
Web page: http://www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/popgenetics/reph/

Opinions expressed are those of the author, not of the institution.

On 10/06/2013 16:41, Isabelle Delrieu wrote:
Dear All,

I working on  MeasureDHS surveys (2-stage cluster sample) and I'm trying to
estimate weighted median using Stata10.
I've tried several ways, but none seems to work:
iweight or pweight are not allowed with 'sum var,d' or 'centile var' or
'qreg var'.
When I use quantile regression for the median to get standard errors, qreg
is not supported by svy.

What could I do?
Thanks for your answers

ID



*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index