see: -help encode-
HTH,
Maarten
-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands
visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z434
+31 20 5986715
http://home.fsw.vu.nl/m.buis/
-----------------------------------------
-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of [email protected]
Sent: maandag 21 augustus 2006 18:06
To: [email protected]
Subject: st: Generate variable which identify same subject
Dear all,
I have a data set with 260 rows for 36 different subject.
All subject are identify by their name, a string variable.
I would like to create a variable "id" with value 1 for the fist subject,
value 2 for the second ... until 36
Name id
Alli 1
Alli 1
Alli 1
Bear 2
Chea 3
Chea 3
.
.
.
How can I do ?
Thank you
Alvine
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/