For example, it checks if the endogenous variable in binary model is 0 and 1 (number of choices is 2)
get.data.check.discrete(data, colIndex = 1)Number of choices in the model, if no error occured. This means, the maximum value for the discrete data will be the output minus one.
Output of get.data function
The index of column to be checked.