My aim is to test the independence of two categorical variables, however the independence assumption of the chi-square test is violated and both the Cochran Q and McNemar tests are not suited to my experimental design. I am looking for an alternative test that might suit my data. The data is as follows:
variable 1: condition (3 levels [A,B,C])
variable 2: effect (10 levels [A1:A10])
n subjects = 60
Each subject was only tested under one level of condition, and provided a dichotomous (1/0) value for each level of effect.
Example data (truncated and 0's omitted for readability):
A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 Participant Condition
1 1 A
1 1 A
1 1 A
1 2 C
1 2 C
1 2 C
1 3 A
1 3 A
1 3 A
1 4 B
1 4 B
1 4 B
1 4 B
1 4 B
1 4 B
...
...
1 60 C
continues to final participant and resulting in a frequency table as follows:
A B C
A1 9 3 4
A2 11 3 8
A3 1 6 5
A4 1 11 8
A5 0 3 1
A6 2 10 8
A7 0 1 2
A8 7 2 8
A9 5 6 2
A10 1 14 9