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: Q1, Median & Q3 for pweighted svy data.


From   Steven Samuels <[email protected]>
To   [email protected]
Subject   Re: st: Q1, Median & Q3 for pweighted svy data.
Date   Thu, 27 Jan 2011 16:23:53 -0500

--
-pctile- will accept -pweights-, but, unlike -scsomersd-, provides no measures of variability for the estimated percentiles.

Steve

Steven J. Samuels
[email protected]
18 Cantine's Island
Saugerties NY 12477
USA
Voice: 845-246-0774
Fax:    206-202-4783

On Jan 27, 2011, at 2:53 PM, Roger Newson wrote:

This sounds like a job for the -scsomersd- package, which you can download from SSC. The -scsomersd- package can calculate confidence intervals for medians, and other percentiles, adjusted for clustering and/or sampling probability weights. However, it does not (yet) cater for sampling strata, so the confidence intervals will be (if anything) conservative if you have used sampling strata.

The -scsomersd- package requires the -somersd- and -expgen- packages in order to work. Both of these packages can also be downloaded from SSC.

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 27/01/2011 19:46, Michael Costello wrote:
I have a data set with weighted data and a svyset command attached to
the database.  I'm trying to get the 5 number summary (Min, Q1, Med,
Q3, Max) of the data in some kind of weighted form.  Is this possible?
-M.
--
Michael Costello
Intern, RTI International
MS Candidate, Statistics 2011

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/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/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/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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