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

st: New package -varlabdef- on SSC

From   "Newson, Roger B" <>
To   "''" <>
Subject   st: New package -varlabdef- on SSC
Date   Tue, 14 Apr 2009 13:37:52 +0100

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

The -varlabdef- package is described as below on my website. It is an extended version of -label define-, with labelled values corresponding to variables and labelled accordingly. Once such a variable label is defined, the user can us -label save- to save its definition to a do-file, and rerun  that do-file in output datasets (or resultssets) with observations corresponding to variables in the original dataset, and then use -encode- (or -sencode-) to create labelled variables in those resultssets.

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

      varlabdef: Define a value label with values corresponding to variables

      varlabdef creates (or extends) a value label, with one value
      for each of a list of variables, and labels copied from the
      variable labels, variable names, or other variable
      attributes.  This value label may be re-used in output
      datasets (or resultssets), with observations corresponding
      to the variables.  Such output datasets may be created using
      packages such as parmest, downloadable from SSC.
      Author: Roger Newson
      Distribution-Date: 09april2009
      Stata-Version: 10

INSTALLATION FILES                                  (click here to install)
(click here to return to the previous screen)

*   For searches and help try:

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