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


CheckDichotomousColumn

Declaration: TDataTable.CheckDichotomousColumn (col: integer; var v1, v2: double): boolean;
The function CheckDichotomousColumn checks whether the data in column col are dichotomous. If so, the function returns TRUE and the two values in the variable parameters v1 and v2. If the function returns FALSE the values in v1 and v2 may be undefined.

Please note that in the case of a constant value in all cells of column col the data are also formally dichotomous. In this case the function returns a TRUE value with v1 and v2 containing the same value.

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