Thanks to Kit Baum, a -labvalclone- program has been
added to the -labutil- package on SSC.
A previous version of this program was posted
to Statalist on Friday in response to a question
from Roger Harbord.
-labvalclone- clones the value labels with name vallblname
as a new set of value labels with name newvallblname.
This might be useful if you want to use almost the same
labels as an existing set, so that
you first want a copy of the labels, which you can then modify.
This command uses -file-, introduced into Stata 7 on 8 May 2001,
so your Stata must have been updated after that for this to work.
Examples
. labvalclone oldlabel newlabel
. label def newlabel 5 "5 or more", modify
To install in an up-to-date Stata, type
. ssc inst labutil
or
. ssc inst labutil, replace
Nick
[email protected]
*
* 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/