powered by
Create breaks using earth (i.e. MARS)
create_earthbreaks(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 { earth_breaks <- create_breaks(x=iris$Sepal.Length, y=iris$Sepal.Width, method="earth") create_bins(iris$Sepal.Length, earth_breaks) # }
Run the code above in your browser using DataLab