powered by
Bin continuous data using the equal length binning method.
rbin_equal_length( data = NULL, response = NULL, predictor = NULL, bins = 10, include_na = TRUE )# S3 method for rbin_equal_length plot(x, print_plot = TRUE, ...)
# S3 method for rbin_equal_length plot(x, print_plot = TRUE, ...)
A data.frame or tibble.
data.frame
tibble
Response variable.
Predictor variable.
Number of bins.
logical; if TRUE, a separate bin is created for missing values.
TRUE
An object of class rbin_equal_length.
rbin_equal_length
logical; if TRUE, prints the plot else returns a plot object.
further arguments passed to or from other methods.
A tibble.
# NOT RUN { bins <- rbin_equal_length(mbank, y, age, 10) bins # plot plot(bins) # }
Run the code above in your browser using DataLab