McNemar’s test is used to test whether or not counts are consistent across two groups. It is often used to test if the counts between a treatment group and control group are equal.
Given the following 2×2 table:
The test statistic X2 is computed as (|b-c|-1)2 / (b+c) and follows a chi-square distribution with one degree of freedom.
To perform McNemar’s test for a given dataset, simply enter the values in the cells below and then press the “Calculate” button.