BookmarkSubscribeRSS Feed
xuerebry
Calcite | Level 5

I have a simple data set with 3 fields - location name, latitude, and longitude.  I have about 1,100 locations and want to cluster them into regions of about 15-16 locations each.  The furthest distance I want to allow between any 2 locations within a region is 30 miles.  What is my best approach to solving this problem?

1 REPLY 1
PGStats
Opal | Level 21

One way is to convert the lat-long to UTM coordinates and use euclidian distance for clustering (the distance between UTM coordinates approximates the local distance in meters).

 

To do the conversion, look at

 

https://communities.sas.com/t5/SAS-Communities-Library/Convert-LAT-LONG-to-UTM-and-back/ta-p/221779

PG

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1653 views
  • 0 likes
  • 2 in conversation