More general tests are described by Gordon (1999: 226). The test statistic mentioned above
can be computed with a syntax programme in SPSS. The steps are:
1. Generate a random variable and sort the cases using the random variable.
2. Split the data matrix in two data matrices.
3. Match the two files.
4. Compute Euclidean distance (or another measure with a normal or binomial distribution)
for each pair. Note: SPSS does not include a test for chi square distribution.
5. (Compute the frequency distribution) and test, whether the distribution is normal or
binomial. Kolmogorov-Smirinov’s one-sample test can be used for this purpose. Use the
theoretical mean and the theoretical standard deviation according to table 3-3.
The syntax is reported in the appendix. Because of the randomised order of the cases your
results may differ. The results are: