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.

1280 PROXIMITIES<br />

CORRELATION( xy , )<br />

where Z xi is the Z-score (standardized) value of x for the ith case or variable,<br />

and N is the number of cases or variables.<br />

COSINE Cosine of vectors of values. This is a pattern similarity measure.<br />

COSINE( x, y)<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 />

Σi( ZxiZyi) = -------------------------<br />

N – 1<br />

Σi( xiy i)<br />

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

( Σ 2<br />

ixi ) ( Σ 2<br />

iyi )<br />

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

= ( Σixi– y p<br />

i )<br />

POWER( x, y)<br />

=<br />

( Σixi– y p<br />

i )<br />

To obtain proximities for frequency count data, use either of the following keywords on<br />

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 />

1 r /<br />

1 p /

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

Saved successfully!

Ooh no, something went wrong!