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 at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: recoding question


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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index