powered by
Create breaks using decision trees (recursive partitioning)
create_dtbreaks(x, y, control = NULL)
X is a numeric vector to be discretized
Y is the response vector used for calculating metrics for discretization
Control is used for optional parameters for the method
A vector containing the breaks
create_breaks
# NOT RUN { dt_breaks <- create_breaks(iris$Sepal.Length, iris$Species, method="dt") create_bins(iris$Sepal.Length, dt_breaks) # }
Run the code above in your browser using DataLab