I have a categorical variable Q1 taking the values from 1 to 4 and a binary variable Bad taking the values 1 and 0. I want to calculate WoE and IV for the variable according to the existing categories in ascending order. I know that HPBIN has option to calculate those statistics but it would also create other bins - i want to use the variable binned as it is. I have also tried to use the output of the Freq procedure, but it becomes inconvenient for the cases in which there is no events in some of the categories.
... View more