McNemar test for N*N contingency tables

  • Context: Graduate 
  • Thread starter Thread starter mnb96
  • Start date Start date
  • Tags Tags
    Test
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 4K views
mnb96
Messages
711
Reaction score
5
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 [itex]a_{ij} = a_{ji}[/itex] for [itex]i,j=1,2,3,4[/itex].
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 [itex]O[/itex], and create its symmetrized version [itex]E=(O+O^T)/2[/itex]. At this point I could simply apply a Chi2 goodness-of-fit test (with 9 degrees of freedom) between the observed distribution [itex]O[/itex] and the expected one [itex]E[/itex].

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.
 
Physics news on Phys.org
I might have found the answer to my question: Apparently the test I proposed already exists under the name of https://www.statistik.tu-dortmund.de/fileadmin/user_upload/Lehrstuehle/MSind/SFB_475/2005/tr29-05.pdf (see first formula on page 4).
 
...just the number of degrees of freedom in my original post is incorrect: it should be N(N-1)/2 = 6, i.e. the number of dof in a NxN symmetric matrix.