map_IV: Calculate Weight of Evidence (WOE) and Information Value (IV)...

View source: R/calculate_IV.R

map_IVR Documentation

Calculate Weight of Evidence (WOE) and Information Value (IV) between multiple predictors and a single outcome variable, returning a list of statistics.

Description

This is a wrapper around calculate_IV() to loop through multiple predictors and calculate their Weight of Evidence (WOE) and Information Value (IV) with respect to an outcome variable.

Usage

map_IV(data, predictors = NULL, outcome, bins = 10)

Arguments

data

Data frame containing the data.

predictors

Character vector containing the names of the predictor variables. If NULL (default) is supplied, all numeric variables in the data will be used.

outcome

String containing the name of the outcome variable.

bins

Numeric value representing the number of bins to use. Defaults to 10.

Details

The approach used mirrors the one used in Information::create_infotables().

Value

A list of data frames is returned as an output. The first layer of the list contains Tables and Summary:

  • Tables is a list of data frames containing the WOE and cumulative sum IV for each predictor.

  • Summary is a single data frame containing the IV for all predictors.


wpa documentation built on Aug. 21, 2023, 5:11 p.m.

Related to map_IV in wpa...