Thanks, Martin.
I was just going to reply to myself saying that I had found it here:
http://www.ats.ucla.edu/stat/Stata/faq/destring.htm
I have used -encode- so many times. Must be getting old.
Eric
Eric de Souza
College of Europe
BE-8000 Brugge (Bruges)
Belgium
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Weiss
Sent: 05 February 2010 11:48
To: [email protected]
Subject: st: AW: Converting country names into numbers
<>
*************
h encode
*************
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von DE SOUZA Eric
Gesendet: Freitag, 5. Februar 2010 11:47
An: Statalist
Betreff: st: Converting country names into numbers
I can't for the life of me remember how to convert a variable containg country names into a variable containing numbers, one for each country.
Eric
Eric de Souza
College of Europe
BE-8000 Brugge (Bruges)
Belgium
*
* 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/
*
* 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/