BookmarkSubscribeRSS Feed
crisgugiu
Fluorite | Level 6

Hi everyone,

I am helping a friend conduct a cluster analysis. I'm new to this analysis and would like to know if there is any other way of displaying results other than a tree diagram. I performed the analysis on 194 cases and the resulting diagram was not something I could present to others or submit for publication. Specifically, the fontsize was tiny because it was squeezed to fit onto a single page. However, even if I print the tree diagram on two pages, it still does not look very professional. I am interested in learning more about how such data can be displayed. Snippets of code and a graph would really help me out a lot.

best,

Cristian

2 REPLIES 2
Jay54
Meteorite | Level 14

If you include your code with data, it would help us understand this use case.  Also, please tell us which release of SAS you are using.

crisgugiu
Fluorite | Level 6

Is there are way to attach a SAS data set?

Here is the SAS code.

ods graphics on;
proc cluster data=HCA_std method=WARD TRIM=10 NONORM k=10 ccc pseudo print=30 outtree=Tree ;
   var can:;
   id NationYR;
   copy FH Van Democ Elecsd Polity;
   format NationYR $12.;
run;
ods graphics off;

goptions vsize=10in hsize=10in htext=.5pct htitle=2pct ftext='Garamond' ;
title "Cluster Analysis of Country/Election Years";
axis1 order=(0 to 1 by 0.1) label = (height=2pct) ;
proc tree data=Tree out=Clusters(drop=CLUSNAME can:) nclusters=2 similar
          haxis=axis1 VPAGES=2 horizontal  ;
where _FREQ_ >-1;
height _rsq_;
copy FH Van Democ Elecsd Polity;
id NationYR;
run;

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 Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 1105 views
  • 0 likes
  • 2 in conversation