It gives the user the ability to calculate, in one step, the IV for each characteristic of the dataset. This function also shows a progress bar so the user can see the status of the process.
A data frame.
Binary response variable (0,1). Integer (
smbinning.sumiv generates a table that lists each characteristic
with its corresponding IV for those where the calculation is possible, otherwise it will generate a
missing value (
1 2 3 4 5 6 7 8 9 10 11
# Package loading and data exploration library(smbinning) # Load package and its data data(chileancredit) # Load smbinning sample dataset (Chilean Credit) # Training and testing samples (Just some basic formality for Modeling) chileancredit.train=subset(chileancredit,FlagSample==1) chileancredit.test=subset(chileancredit,FlagSample==0) # Summary IV application sumivt=smbinning.sumiv(chileancredit.train,y="FlagGB") sumivt # Display table with IV by characteristic