[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

AW: st: data problem - duplicates

From   <>
To   <>
Subject   AW: st: data problem - duplicates
Date   Fri, 13 Jun 2008 08:30:13 +0200

Thank you Salah and Phil for your answers and advice (sorry for my late

(1) Soundex works well, however I think the information provided by soundex
are not detailed enough for my purpose. 
(2) The "edit distance" approach sounds promising. However during my first
tries I had some problems to fit the methodology to my dataset. I will keep
on trying and would appreciate if I could get back to you for further


-----Ursprüngliche Nachricht-----
[] Im Auftrag von Phil Schumm
Gesendet: Dienstag, 3. Juni 2008 16:02
Betreff: Re: st: data problem - duplicates

On Jun 3, 2008, at 7:51 AM, <> wrote:
> "Name" is the only variable which I can use to select duplicates. I  
> know that there are ways and programs which are able to define a  
> kind of "similarity-index" which holds information about how  
> similar two or more variables are on the basis of counting the  
> different characters between the variables.

A common way to approach this is with the concept of "edit distance,"  
which is the minimum number of operations required to transform one  
string into another (also known as the Levenshtein distance).  I've  
never implemented this in Stata myself, but a program was posted to  
Statalist several years ago:

-- Phil

*   For searches and help try:

*   For searches and help try:

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