preserve.
set printback=on.
  
* MEASUREMENT OF NONINDEPENDENCE IN STANDARD DYADIC DESIGNS
  Inter2.sps - Categorical measures / Tabulated data.
  
* Example data: Kenny, Kashy & Cook (2006, p. 41, Table 2.4).
  data list free/Member1 Member2 count.
  begin data.
1       1       106
1       2        10
1       3         4
2       1        22
2       2        28
2       3        10
3       1         2
3       2        12
3       3         6
end data.
  
*\beginning of the program.
  
/* Distinguishable members /*

 

Crosstabs

Member1 * Member2 Crosstabulation
Count

 

 

Member2

Total

1

2

3

1

Member1

1

106

10

4

120

2

22

28

10

60

3

2

12

6

20

Total

130

50

20

200

 

Symmetric Measures

 

 

Value

Asymp. Std. Error(a)

Approx. T(b)

Approx. Sig.

Measure of Agreement

Kappa

.429

.054

7.720

.000

N of Valid Cases

200

 

 

 

a Not assuming the null hypothesis.

b Using the asymptotic standard error assuming the null hypothesis.

 

 
/*Indistinguishable members /*

 

Crosstabs

 

Member1 * Member2 Crosstabulation
Count

 

 

Member2

Total

1

2

3

1

Member1

1

106.000

16.000

3.000

125.000

2

16.000

28.000

11.000

55.000

3

3.000

11.000

6.000

20.000

Total

125.000

55.000

20.000

200.000

 

Symmetric Measures

 

 

Value

Asymp. Std. Error(a)

Approx. T(b)

Approx. Sig.

Measure of Agreement

Kappa

.427

.054

7.648

.000

N of Valid Cases

200

 

 

 

a Not assuming the null hypothesis.

b Using the asymptotic standard error assuming the null hypothesis.

 

 
*/end of the program.
restore.