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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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