CLUSTER

CLUSTER is available in the Statistics Base option.

CLUSTER produces hierarchical clusters of items based on distance measures of dissimilarity or similarity. The items being clustered are usually cases from the active dataset, and the distance measures are computed from their values for one or more variables. You can also cluster variables if you read in a matrix measuring distances between variables.

CLUSTER varlist [/MISSING=[EXCLUDE**] [INCLUDE]] 

[/MEASURE=[{SEUCLID**         }] 
           {EUCLID            }
           {COSINE            }
           {CORRELATION       }
           {BLOCK             }
           {CHEBYCHEV         }
           {POWER(p,r)        }
           {MINKOWSKI(p)      }
           {CHISQ             }
           {PH2               }
           {RR[(p[,np])]      }
           {SM[(p[,np])]      }
           {JACCARD[(p[,np])] }
           {DICE[(p[,np])]    }
           {SS1[(p[,np])]     }
           {RT[(p[,np])]      }
           {SS2[(p[,np])]     }
           {K1[(p[,np])]      }
           {SS3[(p[,np])]     }
           {K2[(p[,np])]      }
           {SS4[(p[,np])]     }
           {HAMANN[(p[,np])]  }
           {OCHIAI[(p[,np])]  }
           {SS5[(p[,np])]     }
           {PHI[(p[,np])]     }
           {LAMBDA[(p[,np])]  }
           {D[(p[,np])]       }
           {Y[(p[,np])]       }
           {Q[(p[,np])]       }
           {BEUCLID[(p[,np])] }
           {SIZE[(p[,np])]    }
           {PATTERN[(p[,np])] }
           {BSEUCLID[(p[,np])]}
           {BSHAPE[(p[,np])]  }
           {DISPER[(p[,np])]  }
           {VARIANCE[(p[,np])]}
           {BLWMN[(p[,np])]   }



[/METHOD={BAVERAGE**}[(rootname)] [...]] 
         {WAVERAGE  }
         {SINGLE    }
         {COMPLETE  }
         {CENTROID  }
         {MEDIAN    }
         {WARD      }
         {DEFAULT** } 

 [/SAVE=CLUSTER({level  })]  [/ID=varname]
                {min,max}

 [/PRINT=[CLUSTER({level  })] [DISTANCE] [SCHEDULE**] [NONE]] 
                  {min,max}

 [/PLOT=[VICICLE**[(min[,max[,inc]])]] [DENDROGRAM] [NONE]] 
        [HICICLE[(min[,max[,inc]])]]       

 [/MATRIX=[IN({'savfile'|'dataset'})] [OUT({'savfile'|'dataset'})]]
              {*                  }        {*                  }

** Default if the subcommand or keyword is omitted.

This command reads the active dataset and causes execution of any pending commands. See the topic Command Order for more information.

Syntax for the CLUSTER command can be generated from the Hierarchical Cluster Analysis dialog.

Example

CLUSTER V1 TO V4
 /PLOT=DENDROGRAM
 /PRINT=CLUSTER (2,4).