BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Crubal
Quartz | Level 8

Hi, I have a question when working on cluster analysis.

 

How can I draw an Elbow Evaluation plot in determining the best number of clusters? Thanks!

 

 

proc fastclus
data=HOTEL_EMEA 
maxc=10
maxiter=10
out=clust;
var avg_pct;
run;
1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User

use proc princomp to get two primary component of your data. And plot them at X-Y axis .you can see the number of cluster you should split.

 

Here is an example:

 

http://blogs.sas.com/content/iml/2014/11/07/distribution-of-blood-types.html

View solution in original post

5 REPLIES 5
Ksharp
Super User

I would do Primary Component Analysis and get those two PC and polt them by proc sgplot ,and you could probably get N of clusters. 

Babloo
Rhodochrosite | Level 12

Ksharp,

 

Could you please give me one simple example? What do you mean by 'get those two PC' in your reply?

Ksharp
Super User

use proc princomp to get two primary component of your data. And plot them at X-Y axis .you can see the number of cluster you should split.

 

Here is an example:

 

http://blogs.sas.com/content/iml/2014/11/07/distribution-of-blood-types.html

Babloo
Rhodochrosite | Level 12

Can we cluster analysis only with continous varaibles?

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!

How to choose a machine learning algorithm

Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 5 replies
  • 4251 views
  • 0 likes
  • 3 in conversation