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;

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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