NAG Library Manual, Mark 28.5
Interfaces:  FL   CL   CPP   AD 

NAG FL Interface Introduction
Example description

 G08ALF Example Program Results

 Cochrans Q test

 Data matrix
           1       2       3
  1   1.0000  1.0000  1.0000
  2   1.0000  1.0000  1.0000
  3   0.0000  1.0000  0.0000
  4   1.0000  1.0000  0.0000
  5   0.0000  0.0000  0.0000
  6   1.0000  1.0000  1.0000
  7   1.0000  1.0000  1.0000
  8   1.0000  1.0000  0.0000
  9   0.0000  0.0000  1.0000
 10   0.0000  1.0000  0.0000
 11   1.0000  1.0000  1.0000
 12   1.0000  1.0000  1.0000

 Cochrans Q test statistic =       2.8000
 Degrees of freedom =    2.0
 Upper-tail probability =       0.2466