Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 72786

generating clusters within a dataset

$
0
0
Hi,

I'm looking for help on the following issue. I have a dataset of pairwise comparisons listing distances between id1 and id2:

id1 id2 distance
AB-03 AB-07 1
AB-03 AB-06 1
AB-06 AB-07 0

I would like to generate clusters that include all id within 0-1 distance. For example for the subset listed above the cluster would be "AB-03 AB-06 AB-07"
Is there a simple way to go about this?

Thanks!

Viewing all articles
Browse latest Browse all 72786

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>