Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Michael Betz <betz.40@buckeyemail.osu.edu> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | RE: st: Tab gen names |
Date | Mon, 4 Jun 2012 16:46:09 +0000 |
That's it perfect. Thanks for your solution too David. -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of daniel klein Sent: Monday, June 04, 2012 12:32 PM To: statalist@hsphsun2.harvard.edu Subject: Re: st: Tab gen names For an implemented solution see -dummieslab- from (SSC) or -todummy- (also from SSC). Best Daniel -- 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/ * * 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/