Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: Fuzzy collapse


From   Charles Vellutini <[email protected]>
To   "[email protected]" <[email protected]>
Subject   RE: st: Fuzzy collapse
Date   Thu, 26 Jan 2012 08:58:15 -0800

Thanks Steve. I will try that -- although my impression is that the Stata implementation of -soundex- is based on English, right? Not sure about French keywords (my data in this particular case).

Charles

-----Message d'origine-----
De : [email protected] [mailto:[email protected]] De la part de Steve Nakoneshny
Envoyé : jeudi 26 janvier 2012 17:18
À : [email protected]
Objet : Re: st: Fuzzy collapse

Although I don't have any experience in using it, I would think that this situation may call for -soundex-, check -help string functions- for details.


Steve

On 2012-01-26, at 9:03 AM, Charles Vellutini wrote:

> Dear Statalisters,
> 
> I have a string variable holding thousands of search keywords, many of them identical up to a few accents or characters. Here is a typical sample:
> 
> 		keyword
> 
> Obs1    		télécommandes
> Obs2		télecommandes	
> Obs3 		télécomandes
> Obs4		telecommandes
> Obs5		télécommande
> etc.
> 
> I would like to do a "fuzzy" collapse, that is, to group observations with near-identical keywords. I could write manual multiple -replace-'s to harmonize keywords, but given the size of the dataset and the variety of keywords, that is hardly feasible. I am aware of the -reclink- user-written command for fuzzy merging but that is for merging two datasets, not for collapsing observations within a dataset. It is not immediately evident to me how I could use -reclink- to solve my problem, but maybe that is feasible?
> 
> Any suggestion much appreciated.
> 
> Thanks,
> Charles
> 
> 
> 
> 
> 
> *
> *   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index