I have a 4 by 4 tables. Rows corresponds to people group and columns are their decisions types. The ij of the table is the number of people type i who have decision type j.
decision 1 decision 2 decision 3 decision 4
people type 1 150 50 130 270
people type 2 540 60 160 240
people type 3 530 70 170 230
people type 4 540 40 150 270
I would like to do a Tukey style proportion test which compares people type pairs. The expected output has to be a something like the following table.
p_value
people type 1 & 2 X
people type 1 & 3 X
people type 1 & 4 X
people type 2 & 3 X
people type 2 & 4 X
people type 3 & 4 X