27.03.2013 Views

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

230 CLUSTER<br />

CHEBYCHEV Chebychev distance metric. The distance between two items is the maximum<br />

absolute difference between the values for the items.<br />

BLOCK City-block or Manhattan distance. The distance between two items is the<br />

sum of the absolute differences between the values for the items.<br />

MINKOWSKI(p) Distance in an absolute Minkowski power metric. The distance between two<br />

items is the pth root of the sum of the absolute differences to the pth power<br />

between the values for the items. Appropriate selection of the integer parameter<br />

p yields Euclidean and many other distance metrics.<br />

POWER(p,r) Distance in an absolute power metric. The distance between two items is the<br />

rth root of the sum of the absolute differences to the pth power between the<br />

values for the items. Appropriate selection of the integer parameters p and r<br />

yields Euclidean, squared Euclidean, Minkowski, city-block, and many<br />

other distance metrics.<br />

Measures for Frequency Count Data<br />

CHEBYCHEV( x, y)<br />

= maxi xi – yi BLOCK( xy , ) = Σixi– yi MINKOWSKI( xy , ) = ( Σixi– y p<br />

i )<br />

POWER( xy , ) = ( Σixi– y p<br />

i )<br />

For frequency count data, use any one of the following keywords on MEASURE:<br />

CHISQ Based on the chi-square test of equality for two sets of frequencies. The<br />

magnitude of this dissimilarity measure depends on the total frequencies of<br />

the two cases or variables whose dissimilarity is computed. Expected values<br />

are from the model of independence of cases or variables x and y.<br />

CHISQ( x, y)<br />

=<br />

PH2 Phi-square between sets of frequencies. This is the CHISQ measure<br />

normalized by the square root of the combined frequency. Therefore, its<br />

value does not depend on the total frequencies of the two cases or variables<br />

whose dissimilarity is computed.<br />

PH2( x, y)<br />

=<br />

1 r /<br />

1 p /<br />

Σi( xi – Ex ( i)<br />

) 2<br />

----------------------------------<br />

( )<br />

Σi yi Ey ( – ( i)<br />

) 2<br />

+ ----------------------------------<br />

( )<br />

Ex i<br />

Ey i<br />

Σi( xi – Ex ( i)<br />

) 2<br />

----------------------------------<br />

Ex ( i)<br />

Σi yi Ey ( – ( i)<br />

) 2<br />

+ ----------------------------------<br />

Ey ( i)<br />

----------------------------------------------------------------------------<br />

N

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!