iv: Information value of an independent variable in predicting a binary response
Description
Takes in independent and dependent variable and returns IV value
Usage
iv(x, y)
Arguments
x
an independent variable
y
a binary response variable
Value
information value of x
Details
Information value of a variable is a significant indicator of its relevance in
the prediction of a binary response variable. iv computes that value using
the formula,
IV = summation[(Responders - Non-responders)*ln(Responders / Non-responders) for
each bin].
Ten bins are created for continous variables while categories itself are used as
bins for categorical independent variables.