Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | David Kantor <kantor.d@att.net> |
To | statalist@hsphsun2.harvard.edu |
Subject | RE: st: recoding question |
Date | Mon, 24 Dec 2012 17:13:46 -0500 |
At 02:15 PM 12/24/2012, Peter A. Lachenbruch wrote:
thanks - works well. [...] ________________________________________From: owner-statalist@hsphsun2.harvard.edu [owner-statalist@hsphsun2.harvard.edu] on behalf of Richard Goldstein [richgold@ix.netcom.com]Sent: Monday, December 24, 2012 8:18 AM [...] Tony, I think what you want is the "label" option to the -encode- command; just be sure to set up the label (using -label define-) before you use the -encode- command Rich [...]
I recommend that you also use the -noextend- option. This insures that variant spellings and spurious values do not extend the label.
HTH --David * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/