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

Re:st: classification problem


From   "Nick Cox" <[email protected]>
To   <[email protected]>
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 
[email protected] 
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index