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


IsDichotomousColumn

Declaration: TDataTable.IsDichotomousColumn (ColIx: longint): boolean;
The function IsDichotomousColumn checks whether the values in the column ColIx are dichotomous or not. The valid range of the parameter ColIx is from 1 to NrOfColumns.

If the column contains only two different values the function returns TRUE. Please note that in the case of a constant value in all cells of the column ColIx the function returns a FALSE value. The same is true if ColIx contains an invalid index.

Hint: This function works independent of the level of measurement assigned to the column.