Statalist The Stata Listserver


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

st: New values for a value labelled variable


From   Serguei Kaniovski <kaniovsk@wifo.ac.at>
To   statalist@hsphsun2.harvard.edu
Subject   st: New values for a value labelled variable
Date   Thu, 14 Sep 2006 14:08:45 +0200

Hi all,

I have a variable with (many) value labels, say

12-joe
23-mike
12-joe
45-helen
24-tom
...

I would like to create a new variable with consecutive values assigned to the old labels, e.g.

1-joe
2-mike
1-joe
3-helen
4-tom
...

It is important that the sequence of names is preserved.

Thanks a lot,
Serguei Kaniovski
--
___________________________________________________________________

Austrian Institute of Economic Research (WIFO)

Name: Serguei Kaniovski P.O.Box 91
Tel.: +43-1-7982601-231 Arsenal Objekt 20
Fax: +43-1-7989386 1103 Vienna, Austria
Mail: Serguei.Kaniovski@wifo.ac.at

http://www.wifo.ac.at/Serguei.Kaniovski


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