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
here.
Nick
[email protected]
Aaron
> 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:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/