Cluster Analysis Example
8 Dental Variables

data clus;
input mammal $ 1-16 @21(v1-v8) (1.0);
cards;
brnbat              23113333
mole                32103333
silbat              23112333
pigbat              23112233
houbat              23111233
redbat              13111233
pika                21002233
rabbit              21003233
beaver              11002133
grndhog             11002133
grsquir             11001133
houmouse            11000033
porcupin            11001133
wolf                33114423
bear                33114423
raccoon             33114432
marten              33114412
weasel              33113312
wolverin            33114412
badger              33113312
rivott              33114312
seaott              32113312
jaguar              33113211
cougar              33113211
furseal             32114411
sealion             32114411
grseal              32113322
eleseal             21114411
reindeer            04103333
elk                 04103333
deer                04003333
moose               04003333
;
proc cluster method=average;
  id mammal;
  var v1-v8;
  title 'Cluster analysis of mammalian dental characteristics';
proc tree;
run;

-----------------------------------------------------------------------------

                 Cluster analysis of mammalian dental characteristics 
                           Average Linkage Cluster Analysis

        Number                                   Frequency   Normalized
          of                                        of New       RMS
       Clusters   ----------Clusters Joined-----   Cluster    Distance    Tie
            31    beaver          grndhog                2    0.000000     T
            30    grsquir         porcupin               2    0.000000     T
            29    wolf            bear                   2    0.000000     T
            28    marten          wolverin               2    0.000000     T
            27    weasel          badger                 2    0.000000     T
            26    jaguar          cougar                 2    0.000000     T
            25    furseal         sealion                2    0.000000     T
            24    reindeer        elk                    2    0.000000     T
            23    deer            moose                  2    0.000000
            22    brnbat          silbat                 2    0.276600     T
            21    pigbat          houbat                 2    0.276600     T
            20    pika            rabbit                 2    0.276600     T
            19    CL31            CL30                   4    0.276600     T
            18    CL28            rivott                 3    0.276600     T
            17    CL27            seaott                 3    0.276600     T
            16    CL24            CL23                   4    0.276600
            15    CL21            redbat                 3    0.338765
            14    CL17            grseal                 4    0.357090
            13    CL29            raccoon                3    0.391172     T
            12    CL25            eleseal                3    0.391172
            11    CL18            CL14                   7    0.429993
            10    CL22            CL15                   5    0.492214
             9    CL20            CL19                   6    0.517472     T
             8    CL11            CL26                   9    0.533078
             7    CL8             CL12                  12    0.616202
             6    mole            CL13                   4    0.618497
             5    CL9             houmouse               7    0.686876
             4    CL6             CL7                   16    0.709702
             3    CL10            CL16                   9    0.806422
             2    CL3             CL5                   16    1.025514
             1    CL2             CL4                   32    1.195967
                                 
                                        Name of Observation or Cluster
                                        
        |bat-----------|deer----------|rodent-----------|carnivore-------------------------------------                               

                        r                          p  h                 w
                        e                    g  g  o  o           r     o                       f  s  e
         b  s  p  h  r  i              r  b  r  r  r  u           a  m  l  r  w  b  s  g  j  c  u  e  l
         r  i  i  o  e  n        m     a  e  n  s  c  m           c  a  v  i  e  a  e  r  a  o  r  a  e
         n  l  g  u  d  d     d  o  p  b  a  d  q  u  o  m  w  b  c  r  e  v  a  d  a  s  g  u  s  l  s
         b  b  b  b  b  e  e  e  o  i  b  v  h  u  p  u  o  o  e  o  t  r  o  s  g  o  e  u  g  e  i  e
         a  a  a  a  a  e  l  e  s  k  i  e  o  i  i  s  l  l  a  o  e  i  t  e  e  t  a  a  a  a  o  a
         t  t  t  t  t  r  k  r  e  a  t  r  g  r  n  e  e  f  r  n  n  n  t  l  r  t  l  r  r  l  n  l
 A  1.2 +XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 v      |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 e      |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 r      |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 a      |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX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XXX  .  XXXXXXXXXX  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
        |XXXXXXXXXXXXX  XXXXXXXXXX  XXXXXXXXXXXXXXXX  .  .  XXXXXXX  XXXXXXXXXXXXXXXXXXXXXXXXX  XXXXXXX
 B      |XXXXXXXXXXXXX  XXXXXXXXXX  XXXXXXXXXXXXXXXX  .  .  XXXXXXX  XXXXXXXXXXXXXXXXXXXXXXXXX  XXXXXXX
 e      |XXXXXXXXXXXXX  XXXXXXXXXX  XXXX  XXXXXXXXXX  .  .  XXXXXXX  XXXXXXXXXXXXXXXXXXX  XXXX  XXXXXXX
 t      |XXXX  XXXXXXX  XXXXXXXXXX  XXXX  XXXXXXXXXX  .  .  XXXXXXX  XXXXXXXXXXXXXXXXXXX  XXXX  XXXXXXX
 w  0.4 +XXXX  XXXXXXX  XXXXXXXXXX  XXXX  XXXXXXXXXX  .  .  XXXXXXX  XXXXXXX  XXXXXXXXXX  XXXX  XXXXXXX
 e      |XXXX  XXXXXXX  XXXXXXXXXX  XXXX  XXXXXXXXXX  .  .  XXXX  .  XXXXXXX  XXXXXXXXXX  XXXX  XXXX  .
 e      |XXXX  XXXXXXX  XXXXXXXXXX  XXXX  XXXXXXXXXX  .  .  XXXX  .  XXXXXXX  XXXXXXX  .  XXXX  XXXX  .
 n      |XXXX  XXXX  .  XXXXXXXXXX  XXXX  XXXXXXXXXX  .  .  XXXX  .  XXXXXXX  XXXXXXX  .  XXXX  XXXX  .
        |.  .  .  .  .  XXXX  XXXX  .  .  XXXX  XXXX  .  .  XXXX  .  XXXX  .  XXXX  .  .  XXXX  XXXX  .
 C  0.2 +.  .  .  .  .  XXXX  XXXX  .  .  XXXX  XXXX  .  .  XXXX  .  XXXX  .  XXXX  .  .  XXXX  XXXX  .
 l      |.  .  .  .  .  XXXX  XXXX  .  .  XXXX  XXXX  .  .  XXXX  .  XXXX  .  XXXX  .  .  XXXX  XXXX  .
 u      |.  .  .  .  .  XXXX  XXXX  .  .  XXXX  XXXX  .  .  XXXX  .  XXXX  .  XXXX  .  .  XXXX  XXXX  .
 s      |.  .  .  .  .  XXXX  XXXX  .  .  XXXX  XXXX  .  .  XXXX  .  XXXX  .  XXXX  .  .  XXXX  XXXX  .
 t      |.  .  .  .  .  XXXX  XXXX  .  .  XXXX  XXXX  .  .  XXXX  .  XXXX  .  XXXX  .  .  XXXX  XXXX  .
 e    0 +.  .  .  .  .  XXXX  XXXX  .  .  XXXX  XXXX  .  .  XXXX  .  XXXX  .  XXXX  .  .  XXXX  XXXX  .
 r
 s