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
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.
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;
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!
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.