I am trying to do some data analysis, and the idea is to use the command autobinning
to create optimal bins, calculate the WOE value (weight of evidence) for each bunker and then replace the original values belonging to each bunker with the corresponding WOE value. So here is what I do:
CreSC = creditscorecard(Data_Table ,'IDVar','CustID','GoodLabel',0);
scAB = autobinning(CreSC,'Algorithm','Monotone');
DataTransformed = bindata(scAB,t_Data,'OutputType','WOE');
The problem is that the procedure described above does not take into account the values NaN
that are in DATA and automatically excludes them.
My goal is to create a separate bit for values only NaN
and make the command autobinning
take values into account NaN
.
Does anyone have a reasonable solution?
source
share