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


LoadTargetVars

Declaration: FrmPLS.LoadTargetVars (VarList: TIntArray): integer;
Loads the variables specified by the VarList parameter into the list of descriptors. The elements of VarList are indices into the data matrix (allowed range: 1 to DStore.NrOfColumns). The variable list is automatically sorted, duplicates are removed.

The function returns the following error codes:

 0 ... everything OK
-1 ... one or more of the target variables are not available
-2 ... one or more of the target variables are not dichotomous (checked only in the case of PLS/DA)