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: Tab gen names


From   Michael Betz <betz.40@buckeyemail.osu.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: Tab gen names
Date   Mon, 4 Jun 2012 16:14:44 +0000

Hi all,

Is there a way to name the variables created by tabulate generate() according to the tabulated variable's value labels. I want to create dummies for each category in the variable "tenure", which takes the values

1==Freehold
2==Leasehold
3==Mailo
4==Customary

These show up as the newly created variables' labels, but I'd like them to be the variable names. Any thoughts?


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