How to calculate
Under the null hypothesis either discordant direction is equally likely. Calculate and double the smaller binomial tail, capping the result at one.
Worked example
Use Discordant pairs of the first type 1 · Discordant pairs of the second type 6 · Significance level 5%. The result is 12.5%.
Input and result notes
Matching outcomes do not contribute to the exact McNemar test.