Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Label range


From   "Newson, Roger B" <[email protected]>
To   <[email protected]>
Subject   st: RE: Label range
Date   Fri, 2 May 2008 17:31:55 +0100

I think the best currently available way is to use -label save-. (See
-whelp label- for details.)

You might like to write a utility to use -label save- to produce an
output dataset (or resultsset) with 1 observation per value and data on
the values and their labels, possibly in multiple languages. 

I hope this helps.

Roger


Roger B Newson
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: www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/pop
genetics/reph/

Opinions expressed are those of the author, not of the institution.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Friedrich
Huebler
Sent: 02 May 2008 17:14
To: [email protected]
Subject: st: Label range

-labelbook- lists the range of values, as in the example below. How
can one access this range for subsequent processing?

Friedrich


. sysuse auto
. labelbook origin

------------------------------------------------------------------------
------------
value label origin
------------------------------------------------------------------------
------------

      values                                    labels
       range:  [0,1]                     string length:  [7,8]
           N:  2                 unique at full length:  yes
        gaps:  no                  unique at length 12:  yes
  missing .*:  0                           null string:  no
                               leading/trailing blanks:  no
                                    numeric -> numeric:  no
  definition
           0   Domestic
           1   Foreign

   variables:  foreign

                                    numeric -> numeric:  no
  definition
           0   Domestic
           1   Foreign

   variables:  foreign
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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