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

RE: st: Re: Finding "near"-matches

From   "Nick Cox" <>
To   <>
Subject   RE: st: Re: Finding "near"-matches
Date   Fri, 28 Oct 2005 18:25:20 +0100

Without leaving Stata, 

strpos(myvar, "Ford") 

is positive so long as -myvar- contains "Ford" anywhere. 

However, it may well be that that's not your way in 


> The topic gets more and more interesting. I often need to match
> 'fuzzily' the names from two databases that have very minor
> differences. here are some examples:
> Ford Co.
> Ford Corporation
> Ford Inc. (just an example)
> or
> XYZ Tech
> XYZ Technology Inc.
> Can you recommend some programs to generate a list of 'fuzzy' or
> 'near' matches for a name (one or more than one alphanumeric
> characters)? Even if a program provides the three possible matches for
> the name 'Ford', that's still better than hand-checking.

*   For searches and help try:

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