Learn R Programming

binst (version 0.2.1)

create_earthbreaks: Create breaks using earth (i.e. MARS)

Description

Create breaks using earth (i.e. MARS)

Usage

create_earthbreaks(x, y, control = NULL)

Arguments

x

X is a numeric vector to be discretized

y

Y is the response vector used for calculating metrics for discretization

control

Control is used for optional parameters for the method

Value

A vector containing the breaks

See Also

create_breaks

Examples

Run this code
# 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