Statalist


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

st: New package -varlabdef- on SSC


From   "Newson, Roger B" <[email protected]>
To   "'[email protected]'" <[email protected]>
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


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: [email protected] 
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 varlabdef from http://www.imperial.ac.uk/nhli/r.newson/stata10
-----------------------------------------------------------------------------

TITLE
      varlabdef: Define a value label with values corresponding to variables

DESCRIPTION/AUTHOR(S)
      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)
      varlabdef.ado
      varlabdef.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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index