powered by
Discretize variable on demand
Discretize(data, variable.idx, divisions, discretization.nr, seed, range)
Discretized variable.
input data where columns are variables and rows are observations (all numeric)
variable index (as it appears in data)
data
number of divisions
discretization number (positive integer)
seed for PRNG
discretization range
Discretize(madelon$data, 3, 1, 1, 0, 0.5)
Run the code above in your browser using DataLab