Actually, there are 2 levels of combinations: :smileyinfo: combination of variables and (ii) combination of value of variable. For the first level, I want all combination of a1-a6, which are: a1a2, a1a3,a1a4,a1a5,a1a6; a2a3,a2a4,a2a5,a2a5; a3a4,a3a5,a3a6; a4a5,a4a6; and a5a6. For each of the above variable-combination I want value combination. Take the first pair a1a2 as a example: a1 has value 1 2 3 4 5 8 a2 has value 1 2 3 9 I want to report how many observation with target=1 and target=0 for each value-combination as below: a1=1 and a2=1: 0 observation with target=0 ; 0 observation with target=1 (In fact, for simplicity this report can be ignored since there is no such combination in the data) a1=1 and a2=2: 1 observation with target=0; 0 observation with target=1 …. a1=8 and a2=9: … So I want a FULL combination of both levels (variables and value). HHC
... View more