binning_eqwid: Equal Width Binning

View source: R/binning_eqwid.R

binning_eqwidR Documentation

Equal Width Binning

Description

Equal Width Binning

Usage

binning_eqwid(df, feat, label, nbins = 3)

Arguments

df

A data.frame with independent variables and target variable.

feat

A name of dependent variable.

label

A name of target variable.

nbins

Number of bins,default:3.

Value

A data frame, including the contents of the bin, the upper bound of the bin, the lower bound of the bin, and all the contents returned by the get_IV function.

Examples

accepts <- read.csv( system.file( "extdata", "accepts.csv" , package = "autoScorecard" ))
feature <- stats::na.omit( accepts[,c(1,3,7:23)] )
binning_eqwid1 <- binning_eqwid( df = feature, feat = 'tot_derog', label = 'bad_ind', nbins = 3 )

autoScorecard documentation built on July 9, 2023, 5:32 p.m.