Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: Changing labels for multiple variables at the same time


From   Anna Reimondos <areimondos@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Changing labels for multiple variables at the same time
Date   Sun, 11 Apr 2010 11:22:25 +1000

Hello,
I would like to define a some new value labels which I want to attach
to all existing value labels in my dataset.

For example, I want to define among other things that  -1 is Missing,
and -3 is Not applicable:

sysuse nlsw88, clear
label define gradlbl -1 "Missing", modify
label define gradlbl -3 "Not applicable", modify

However I want to modify all the labels (a couple of hundred labels in
the dataset I am working on) in the same way not just gradlbl.

Does anyone know of a way to do this? I tried using the extended macro
functions but without much luck.

Thanks very much,
Anna
*
*   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   |   Site index