-renvars- from SJ offers various ways of renaming bunches of variables.
Here is a more general strategy to solve your problems. -search- and/or
-findit- with keywords will find material both in official Stata and
that is user-written. In this way, you get answers quickly and do not
depend on the caprice of the list, especially with simple questions.
Nick
[email protected]
Michael McCulloch
Thank you Martin, the pre-labeled feature of -encode- is brilliant.
Dropping the old variables will be simple.
Is there a simple way to then rename the resulting many new_variable
names back their old title?
e.g.: combining many of these commands into a shorter step?
rename new_etoh etoh
rename new_smk smk?
*
* 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/