Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: -numlabel, add- problem


From   Friedrich Huebler <[email protected]>
To   [email protected]
Subject   st: -numlabel, add- problem
Date   Thu, 4 Mar 2004 09:32:53 -0800 (PST)

The command -numlabel _all, add- works most of the time but not
always. I have a problem with one file containing 27,000 observations
in 82 variables, most of them in byte format. When I enter -numlabel
_all, add- (or -numlabel, add-) numeric values are added to the value
labels of about 20 variables, but the value labels of about 40 other
variables are not changed. To change the value labels I have to
specify the variable names in the -numlabel- command. I tried the
-mask-, -force- and -detail- options to no avail. Below is an example
for one variable for which -numlabel _all, add- does not work. I use
Stata 8.2 with the latest updates.

Friedrich Huebler

. d hl3

              storage  display     value
variable name   type   format      label      variable label
-------------------------------------------------------------------------------
hl3             byte   %10.0g      hl3        sex

. sum hl3

    Variable |       Obs        Mean    Std. Dev.       Min       
Max
-------------+--------------------------------------------------------
         hl3 |     27035    1.511929    .4998669          1         
2

. lab list hl3
hl3:
           1 male
           2 female
           7 missing

. numlabel _all, add

. lab list hl3
hl3:
           1 male
           2 female
           7 missing

. numlabel hl3, add

. lab list hl3
hl3:
           1 1. male
           2 2. female
           7 7. missing


__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you�re looking for faster
http://search.yahoo.com
*
*   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