Statalist


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

st: New package -bpmedian- on SSC


From   "Newson, Roger B" <r.newson@imperial.ac.uk>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   st: New package -bpmedian- on SSC
Date   Tue, 2 Jun 2009 18:27:32 +0100

Thanks to Kit Baum, a new package -bpmedian- is now available for download from SSC. In Stata, use the -ssc- command to do this.

The -bpmedian- package is as described as below on my website. It contains two modules, -bpmedian- and -bpdifmed-. The -bpmedian- command estimates a median, using the Bonett-Price standard error, and stores the results as estimation results. The -bpdifmed- command computes Bonett-Price confidence intervals for two medians and their difference (or ratio). References for the Bonett-Price method are given in the on-line help.

Note that, in general, the difference between two medians (as estimated by -bpdifmed-) is not the same parameter as the Hodges-Lehmann median difference estimated by -cendif- (part of the SSC package -somersd-) and by Duolao Wang's package -npshift- (distributed by the old Stata Technical Bullletin and accessible using -findit-). However, the two parameters are the same when the two subpopulation distributions being compared either are symmetrical or differ only in location.

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: r.newson@imperial.ac.uk 
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.

----------------------------------------------------------------------------------
package bpmedian from http://www.imperial.ac.uk/nhli/r.newson/stata10
----------------------------------------------------------------------------------

TITLE
      bpmedian: Bonett-Price confidence intervals for medians and their contrasts

DESCRIPTION/AUTHOR(S)
      bpmedian calculates a Bonett-Price confidence interval for a median,
      using the Bonett-Price standard error, and saves the results as
      estimation results.  These can then be saved in an output dataset (or
      resultsset), using the parmest package (downloadable from SSC), and
      then input to the metaparm module of the parmest package to calculate
      Bonett-Price confidence intervals for a linear contrast between
      medians of independent groups.  bpdifmed calculates Bonett-Price
      confidence intervals for the medians of two groups, defined by a
      grouping variable, and also for their difference or ratio.
      
      Author: Roger Newson
      Distribution-Date: 27may2009
      Stata-Version: 10

INSTALLATION FILES                                  (click here to install)
      bpmedian.ado
      bpdifmed.ado
      bpmedian.sthlp
      bpdifmed.sthlp
----------------------------------------------------------------------------------
(click here to return to the previous screen)

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index