David is quite correct, as far as the default of -encode- is concerned.
The most puzzling question not yet answered is why -destring- would not
oblige in this case. I think the questioner has some bad stuff lurking
in their data.
Nick
[email protected]
David Kantor
At 09:35 AM 9/8/2009, Martin Weiss wrote:
>-encode- is the wrong tool, as it assigns numeric codes arbitrarily.
[...]
I believe it is not arbitrary. It works, apparently (in Stata 10), on
alphabetic order, which would yield the same result as the string
version.
*
* 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/