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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 4597 views
  • 0 likes
  • 3 in conversation