I have a dataset which looks as follows:
Patient ID | Group | Disease 1 | Disease 2 | Disease 3 |
---|---|---|---|---|
01 | A | 0 | 1 | 0 |
02 | B | 1 | 1 | 0 |
03 | B | 1 | 1 | 0 |
04 | A | 1 | 1 | 0 |
... | ... | ... | ... | ... |
As you can see, I have two groups A and B, with $n_A$ and $n_B$ patients respectively. Each patient can have one or more of the listed diseases, with a total number of diseases >2. Since a patient can have more than one disease, they are of course non-mutually exclusive.
The corresponding contingency table would look as below:
Group | Disease 1 | Disease 2 | Disease 3 |
---|---|---|---|
A | 231 | 78 | 20 |
B | 312 | 123 | 16 |
What type of omnibus statistical test would you use to check if there is some type of dependency between belonging to a group (A or B) and having a certain disease?
Initially, I thought about using a chi-squared test of independence, but one of the assumptions of this test is that variables must be mutually exclusive. Then, I thought about using a Cochran Q-test (which accepts non-mutually exclusive data), but my data is not paired and I don't know if it can be used with just 2 groups. So, now, I am a bit lost.