列中SAS中的类似字符串组
我有下表:
Name
----
John Smith
John Smth
Jane Lee
Jane Line
Timothy Brown
Timmothy Brown
Agnes James
Aaron James
使用SAS,如何大规模分组这些字符串以识别那些相似的字符串,以便我可以获得此表:
Name
----
John Smith
John Smth
Timothy Brown
Timmothy Brown
I have the following table:
Name
----
John Smith
John Smth
Jane Lee
Jane Line
Timothy Brown
Timmothy Brown
Agnes James
Aaron James
Using SAS, how can I group these strings on a large scale to identify those that are similar, so that I can get this table:
Name
----
John Smith
John Smth
Timothy Brown
Timmothy Brown
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
SAS中有很多方法可以进行字符串的比较。一个简单的示例是使用
soundex
找到两个类似声音的字符串。其他技术将使用基于Levenshtein编辑距离等度量的匹配标准,该距离可以使用
complev
计算。您还可以了解有关spedis
的更多信息。搜索如何使用SAS功能进行模糊匹配,您将获得很多咀嚼。请留意查尔斯·帕特里奇(Charles Patridge)的论文
There are many ways in SAS to perform comparisons of strings. A simple example is using
SOUNDEX
to find two strings that sound alike.Other techniques would use a matching criterion based on a metric such as Levenshtein edit distance, which can be computed with
COMPLEV
. You can also learn more aboutSPEDIS
.Searching up How to perform a fuzzy match using SAS functions and you will get plenty to chew on. Keep an eye out for papers by Charles Patridge