Hi,
Below are the steps to create a cluster variable:
/* wards method cluster analysis */
proc cluster data=have method=ward outtree=tree ccc ;
var a b c;
id country;
run;
/* PROC TREE prints the tree diagram, also output a data set, called "want" that contains variable containing four clusters --- */
proc tree data=tree out=want nclusters=4;
id country;
run;
... View more