Learn R Programming

ldt (version 0.5.3)

get.data.check.discrete: 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)

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.

Arguments

data

Output of get.data function

colIndex

The index of column to be checked.