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