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

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

Register now

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
  • 1764 views
  • 0 likes
  • 2 in conversation