Bookmark and Share

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

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

Re: st: TR: weighted median with Stata10

From   "Roger B. Newson" <>
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 "";

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

I hope this helps.

Best wishes


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
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Web page:
Departmental Web page:

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


*   For searches and help try:

*   For searches and help try:

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