BookmarkSubscribeRSS Feed
SAS_ASS
Obsidian | Level 7

Hey There!

 

Im conducting a cluster analysis in SAS. However, I dont really like the plot of the cluster distance.

Is there a possibility to load the the cluster results or a workflow result from the system in r to visualize the cluster distance based on the two principal components as decribed in the following article:

 

https://towardsdatascience.com/clustering-on-mixed-type-data-8bbd0a2569c3

 

Thanks and kind regards!

3 REPLIES 3
ChrisHemedinger
Community Manager

You didn't say which visualization you're looking at or what you don't like about it, but you can definitely create just about anything you want with PROC SGPLOT if you have the data.  Based on your query, check out this blog post.  But if you have further questions, add some sample data/code and other can probably help.

Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.
SAS_ASS
Obsidian | Level 7

Thanks for your answer. The type of visualizaion I want is described in the article in my post.

It is based on the two principal components and the dots visualize the cluster

ChrisHemedinger
Community Manager

I saw that and that's why I recommended the post that I did, as it had this example from PRINCOMP.  Many SAS/STAT procedures offer built-in plots that might come close to what you need.  But where they fall short, we have PROC SGPLOT to create customized charts.

 

aspectratio3.png

 

Looks like you're looking for something like this -- which is definitely possible from SAS with SGPLOT.  

 

From https://towardsdatascience.com/clustering-on-mixed-type-data-8bbd0a2569c3From https://towardsdatascience.com/clustering-on-mixed-type-data-8bbd0a2569c3

You might also be interested in this post that shows a similar technique, but with prediction ellipses.  If you can supply sample data, I'm sure that someone can provide or point you to a code example.

 

Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 3 replies
  • 1130 views
  • 1 like
  • 2 in conversation