Statalist


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

st: AW: RE: AW: label define


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: RE: AW: label define
Date   Thu, 12 Nov 2009 17:47:32 +0100

<> 



See -help whatsnew-, item 26, for the update of "25feb2008":

"26.  New command label copy has been added, which allows a value label to
be copied to a new name."

HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Clyde Schechter
Gesendet: Donnerstag, 12. November 2009 16:07
An: statalist@hsphsun2.harvard.edu
Betreff: st: RE: AW: label define

Nick Cox says:

3. In Stata 11, but not previously, -label copy- is the way to copy an
existing set of value labels under another name.

But, as the following output demonstrates, -label copy- also works in
version 10.1:

. version
version 10.1

.
. capture label drop _all

.
. label define test 0 "test0" 1 "test1"

. label list _all
test:
           0 test0
           1 test1

.
. label copy test test_copy

. label list _all
test_copy:
           0 test0
           1 test1
test:
           0 test0
           1 test1



Clyde Schechter, MA MD
Associate Professor of Family & Social Medicine

Please note new e-mail address: clyde.schechter@einstein.yu.edu


*
*   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/


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index