# McNemar test for N*N contingency tables

## Main Question or Discussion Point

Hi,

I have a 4x4 contingency table that by visual inspection looks approximately symmetric, in the sense that for each entry aij we approximately have $a_{ij} = a_{ji}$ for $i,j=1,2,3,4$.
I would like to know how can I perform a statistical test for symmetry.

An attempt I made was to treat the whole contingency table as a 4x4 matrix $O$, and create its symmetrized version $E=(O+O^T)/2$. At this point I could simply apply a Chi2 goodness-of-fit test (with 9 degrees of freedom) between the observed distribution $O$ and the expected one $E$.

What makes me suspicious is that I haven't found this kind of approach anywhere. Instead, only the simplest case of 2x2 tables is reported in the literature under the name of McNemar's test.

It's reasonable to think that if the generalization of McNemar's test was so trivial, then somebody else would have "invented" it. This makes me suspect that my approach is incorrect.