get_bins_table_all {creditmodel}R Documentation

Table of Binning

Description

get_bins_table is used to generates summary information of varaibles. get_bins_table_all can generates bins table for all specified independent variables.

Usage

get_bins_table_all(
  dat,
  x_list = NULL,
  target = NULL,
  pos_flag = NULL,
  dat_test = NULL,
  ex_cols = NULL,
  breaks_list = NULL,
  parallel = FALSE,
  note = FALSE,
  bins_total = TRUE,
  save_data = FALSE,
  file_name = NULL,
  dir_path = tempdir()
)

get_bins_table(
  dat,
  x,
  target = NULL,
  pos_flag = NULL,
  dat_test = NULL,
  breaks = NULL,
  breaks_list = NULL,
  bins_total = TRUE,
  note = FALSE
)

Arguments

dat

A data.frame with independent variables and target variable.

x_list

Names of independent variables.

target

The name of target variable.

pos_flag

Value of positive class, Default is "1".

dat_test

A data.frame of test data. Default is NULL.

ex_cols

A list of excluded variables. Regular expressions can also be used to match variable names. Default is NULL.

breaks_list

A table containing a list of splitting points for each independent variable. Default is NULL.

parallel

Logical, parallel computing. Default is FALSE.

note

Logical, outputs info. Default is TRUE.

bins_total

Logical, total sum for each columns.

save_data

Logical, save results in locally specified folder. Default is FALSE.

file_name

The name for periodically saved bins table file. Default is "bins_table".

dir_path

The path for periodically saved bins table file. Default is "./variable".

x

The name of an independent variable.

breaks

Splitting points for an independent variable. Default is NULL.

See Also

get_iv, get_iv_all, get_psi, get_psi_all

Examples

breaks_list = get_breaks_all(dat = UCICreditCard, x_list = names(UCICreditCard)[3:4],
target = "default.payment.next.month", equal_bins =TRUE,best = FALSE,g=5,
ex_cols = "ID|apply_date", save_data = FALSE)
get_bins_table_all(dat = UCICreditCard, breaks_list = breaks_list,
target = "default.payment.next.month")

[Package creditmodel version 1.3.0 Index]