Thanks to Kit Baum, a new module -labelmiss- is placed on SSC. It was
brought up by the request at NASUG to have a routine to put labels on the
missing values for all varaibles at the same time, like map .a to
"Refused", .b to "N/A", .c to "Don't know", etc. What this module does is
it updates the label definitions for the variables that do have labels,
and provides a default label -misslab- for the variables that have no
labels. The limitation the program has is that redefining a label with a
general scope (like -label define yesno 1 "Yes" 2 "No") will likely affect
many variables in the data set, so in fact the program works with labels,
not the variables (although the syntax is referring to variables). I have
not found a nice way to copy a label (-label save- saves label defitions
as a do-file, but I couldn't read it nicely into Stata to modify... and I
cannot really rely on everybody having gawk on their machine to mess up
with the text files :)), so that I could create a new label for each
variable specified. So...
ssc d labelmiss
and enjoy :)
WG (for Wishes and Grumbles, not William Gould :)) -- may be Stata Corp
would want to have that as -label mv- part of the -label- command,
eventually.
--- Stas Kolenikov
-- Ph.D. student in Statistics at UNC-Chapel Hill
- http://www.komkon.org/~tacik/ -- [email protected]
* This e-mail and all attachments to it are not intended to provide any
* reasonable point of view and was transmitted to you in error. It
* should be immediately deleted by all recipients unless they really
* enjoy communicating with the author :). Other restrictions apply.
*
* 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/