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 version of -dsweight- on SSC

From   "Roger B. Newson" <>
To   "" <>
Subject   st: New version of -dsweight- on SSC
Date   Fri, 03 Feb 2012 11:29:28 +0000

Thanks once again to Kit Baum, a new version of the -dsweight- package is now available for download from SSC. In Stata, use the -ssc- command to do this, or -adoupdate- if the user already has an old version of -dsweight-.

The -dsweight- package is described as below on my website. The new version adds a second module -scdsweight- for calculating scenario direct standardization weights, for use with the recently-updated -scsomersd- package, which you can also download from SSC. These scenario direct standardization weights can be used with -scsomersd- to calculate population attributable risks. It also adds a few additional examples in the on-line help, illustrating how direct standardization weights can be used with rank statistics by inputting them as pweights to modules of the -somersd- package (also downloadable from SSC).

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 dsweight from

      dsweight: Generate direct standardization weights

      dsweight generates direct standardization weights for input as
      pweights to estimation commands, standardizing the joint
      distribution of a list of standardization variables to a standard
      target population, possibly within groups defined by value
      combinations of a list of group variables.  A direct
      standardization weight is defined as a ratio between the frequency
      of a combination of values of standardization variables in a target
      standard population and the frequency of the same combination of
      values of standardization variables in the sample or group.  The
      standard target population may be the full sample, or a by-group
      defined by a combination of values of by-variables, or it may be
      defined using a dataset with 1 observation per combination of the
      group variables, and data on the frequencies of these combinations
      in the standard target population.

      Author: Roger Newson
      Distribution-Date: 01february2012
      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