rbin_factor: Factor binning

Description Usage Arguments Examples

View source: R/rbin-factor.R

Description

Weight of evidence and information value for categorical data.

Usage

1
2
3
4
rbin_factor(data = NULL, response = NULL, predictor = NULL, include_na = TRUE)

## S3 method for class 'rbin_factor'
plot(x, print_plot = TRUE, ...)

Arguments

data

A data.frame or tibble.

response

Response variable.

predictor

Predictor variable.

include_na

logical; if TRUE, a separate bin is created for missing values.

x

An object of class rbin_factor.

print_plot

logical; if TRUE, prints the plot else returns a plot object.

...

further arguments passed to or from other methods.

Examples

1
2
3
4
5
bins <- rbin_factor(mbank, y, education)
bins

# plot
plot(bins)

rbin documentation built on July 8, 2020, 7:31 p.m.