Lambda

Declaration: Lambda (ContTab: TInt2DArray; var LambdaRow, LambdaCol: double): integer;
The function Lambda calculates Goodman & Kruskal's lambda value (a measure of association) of the two variables described by their contingency table ContTab. The variable parameters LambdaRow and LambdaCol return the Lambdas (assuming that either the rows or the columns describe the dependent variable, respectively).

The function returns the following error codes:

 0 ... everything is OK
-1 ... the contingency table was not valid (margin sums are wrong)