I have the following table in 'WITH':
"A" ---- 1 ---- 313
"B" ---- 1 ---- 8
"C" ---- 1 ---- 234
"A" ---- 2 ---- 373
"B" ---- 2 ---- 500
"C" ---- 2 ---- 15
I need to find the variable(A/B/C) in each group(1/2) with the biggest count.
That is, for group 1 the variable is A. For group 2 the variable is B. So the new table I want to be able to make out of it is this:
"A" -- 1
"B" -- 1
"C" -- 0