Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: ranksum/Mann-Whitney command


From   Roger Newson <[email protected]>
To   [email protected]
Subject   Re: st: ranksum/Mann-Whitney command
Date   Thu, 26 Aug 2004 21:02:55 +0100

At 19:38 26/08/2004, Holly wrote:
Hello,

I would like to use the ranksum command on a sample population but the
command does not take weights.  Does anyone know of a command that will give
me the same  results for weighted data?
Maybe my own -somersd- package (downloadable from SSC) is what you are looking for. To find more about it it, type

ssc describe somersd

The -somersd- package can use frequency or probability weights, and calculates confidence limits for the 2 parameters corresponding to the ranksum test, namely Somers' D and the Hodges-Lehmann median difference. It comes with 2 .pdf manuals, and a reference to a Stata Journal paper on the subject (Newson, 2002), which can be downloaded as a pre-publication draft from my website.

I hope this helps.

Best wishes

Roger

References

Newson R. 2002. Parameters behind "nonparametric" statistics: Kendall's tau, Somers' D and median differences. The Stata Journal 2(1): 45-64.
A pre-publication draft of this paper can be downloaded from my website. In net-aware Stata, type

net from http://www.kcl-phs.org.uk/rogernewson/papers

to find how to do this.



--
Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
King's College London
5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom

Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
or 020 7848 6605 International +44 20 7848 6605
Email: [email protected]
Website: http://www.kcl-phs.org.uk/rogernewson

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

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index