I have a contingency table "tab" with 2 treatments in the column "treat", "A" and "B". There are 3 additional columns, "Cat_1&qu