Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: Multiple value labels


From   "Rosy Reynolds" <rr@dandr.demon.co.uk>
To   "statalist" <statalist@hsphsun2.harvard.edu>
Subject   st: Re: Multiple value labels
Date   Sun, 26 Mar 2006 10:18:42 +0100

Nick Cox's nifty program -labmask-, part of the -labutil- suite, will do the
job. It assigns the values (or optionally value labels) of one variable as
the value labels of another.
-findit labutil-

Rosy Reynolds
BSAC Resistance Surveillance Co-ordinator
www.bsacsurv.org

----- Original Message ----- From: "MA V" <ma_v@hotmail.com>
To: <statalist@hsphsun2.harvard.edu>
Sent: Saturday, March 25, 2006 10:44 PM
Subject: st: Multiple value labels



Hi--
I have the following in my data:
obs        var1           var2
1         304                House
2         666                Land
3         200                Building
4         304                House
5         304                House
...       ...                  ....

where var2 contains the labels for var1. Since I have many labels it will
not be easy to create the labels for var1 by hand. Is there an easy
procedure to make stata recognize that there is an unique correspondence
between var1 and var2 and to label var1 using var2?
Thanks for your help!
MA_V

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/

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

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