get.data.check.discrete {ldt} | R Documentation |
Check if a column is discrete
Description
For example, it checks if the endogenous variable in binary model is 0 and 1 (number of choices is 2)
Usage
get.data.check.discrete(data, colIndex = 1)
Arguments
data |
Output of get.data function |
colIndex |
The index of column to be checked. |
Value
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.
[Package ldt version 0.5.3 Index]