rbin_quantiles {rbin} | R Documentation |
Quantile binning
Description
Bin continuous data using quantiles.
Usage
rbin_quantiles(
data = NULL,
response = NULL,
predictor = NULL,
bins = 10,
include_na = TRUE
)
## S3 method for class 'rbin_quantiles'
plot(x, print_plot = TRUE, ...)
Arguments
data |
A |
response |
Response variable. |
predictor |
Predictor variable. |
bins |
Number of bins. |
include_na |
logical; if |
x |
An object of class |
print_plot |
logical; if |
... |
further arguments passed to or from other methods. |
Value
A tibble
.
Examples
bins <- rbin_quantiles(mbank, y, age, 10)
bins
# plot
plot(bins)
[Package rbin version 0.2.0 Index]