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]

st: New package -scsomersd- on SSC

From   Roger Newson <>
To   "" <>
Subject   st: New package -scsomersd- on SSC
Date   Thu, 4 Nov 2010 17:26:14 +0000

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

The -scsomersd- package is described as below on my website, and requires the existing SSC packages -expgen- and -somersd- in order to work. It simplifies the calculation of a sub-family of rank statistics for scenario comparisons. This sub-family includes confidence intervals for medians, and other percentiles, in clustered or weighted samples. It also includes the Gini inequality coefficient, the population attributable risk (PAR), and Hodges-Lehmann median differences between paired samples.

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.

package scsomersd from

      scsomersd: Rank statistics for scenario comparisons

      scsomersd, sccendif and sccenclope compute confidence intervals for
      rank statistics comparing scenarios.  Scenarios are alternative
      versions of the data, differing in the values of sampling
      probability weights and/or in the values of an outcome variable.
      The scenario-comparison rank statistics compare 2 scenarios,
      denoted Scenario 0 and Scenario 1, derived from the dataset in the
      memory, in a temporary extended dataset with 1 observation per
      original observation per scenario.  scsomersd estimates the Somers'
      D or Kendall tau-a of the outcome variable, and sccendif and
      sccenslope estimate the Hodges-Lehmann percentile differences of
      the outcome variable, with respect to scenario membership.
      Examples of between-scenario rank statistics include the Gini
      coefficient of inequality, the population attributable risk (PAR),
      percentiles of weighted and/or clustered samples, and
      Hodges-Lehmann percentile differences between paired samples.
      scsomersd, sccendif and sccenclope use the packages somersd and
      expgen, which must be installed in order for the programs to work,
      and can be downloaded from SSC.

      Author: Roger Newson
      Distribution-date: 04november2010
      Stata-version: 10

INSTALLATION FILES                                  (click here to install)
(click here to return to the previous screen)
*   For searches and help try:

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