Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re:st: classification problem


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   Re:st: classification problem
Date   Fri, 15 Aug 2003 11:00:42 +0100

Howard Burkom 

> My dataset has a column consisting of many strings.  
> I also have a text file with a table that groups 
> these strings into 15 categories.  Can anyone
> suggest a Stata method of forming a new column that 
> gives the category number of each string?

Read the text file to make another dataset and 
then use -merge-. [R] merge gives relevant examples. 

Nick 
n.j.cox@durham.ac.uk 
*
*   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/



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