The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Class: none
Declaration: function 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)

Last Update: 2023-Feb-06