Statalist The Stata Listserver

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

st: Re: Multiple value labels

From   "Rosy Reynolds" <>
To   "statalist" <>
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

----- Original Message ----- From: "MA V" <>
To: <>
Sent: Saturday, March 25, 2006 10:44 PM
Subject: st: Multiple value labels

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!

Don't just search. Find. Check out the new MSN Search!

*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index