Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

RE: Re: st: Comparing similar strings


From   Nick Cox <n.j.cox@durham.ac.uk>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   RE: Re: st: Comparing similar strings
Date   Fri, 17 Feb 2012 15:33:31 +0000

Good idea, but -soundex()- is a Stata-wide function, not an -egen- function. 

Nick 
n.j.cox@durham.ac.uk 

Clyde B Schechter

As an alternative  to -levenshtein-, Daniel S. might want to consider comparing names using the -egen- function soundex().  Soundex was developed about a century ago and is specifically designed to match variant spellings of name.  As such, it is a bit more sophisticated about probable types of misspellings than -levenshtein-, which is basically a distance metric on strings.


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index