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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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