DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


Declaration: GoodmanLambda (ContTab: TInt2DArray; var LambdaRow, LambdaCol: double): integer;
The function GoodmanLambda 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)