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

NAG FL Interface Introduction
Example description

 G01AFF Example Program Results

 Data as input -
 Number of rows  2
 Number of columns  3
 NUM =  0 (NUM = 1 means table reduced in size if necessary)

 Table of observed and expected frequencies

               Column
            1     2     3
 Row
  1        86    51    13
           74.   57.   19.
                                                 Row total =     150
  2       130   115    41
          142.  109.   35.
                                                 Row total =     286

 Column
 totals   216   166    54
                                                 Grand total =     436

 Chi-squared =      6.352   D.F. =   2