powered by
Bin continuous data using quantiles.
rbin_quantiles( data = NULL, response = NULL, predictor = NULL, bins = 10, include_na = TRUE )# S3 method for rbin_quantiles plot(x, print_plot = TRUE, ...)
# S3 method for rbin_quantiles 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_quantiles.
rbin_quantiles
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_quantiles(mbank, y, age, 10) bins # plot plot(bins) # }
Run the code above in your browser using DataLab