Related Experiment Video
Updated: May 9, 2026

Using the FishSim Animation Toolchain to Investigate Fish Behavior: A Case Study on Mate-Choice Copying In Sailfin Mollies
Published on: November 8, 2018
The McNemar test for binary matched-pairs data: mid-p and asymptotic are better than exact conditional
Morten W Fagerland1, Stian Lydersen, Petter Laake
1Unit of Biostatistics and Epidemiology, Oslo University Hospital, Oslo, Norway. morten.fagerland@medisin.uio.no
Background:
Statistical methods that use the mid-p approach are useful tools to analyze categorical data, particularly for small and moderate sample sizes. Mid-p tests strike a balance between overly conservative exact methods and asymptotic methods that frequently violate the nominal level. Here, we examine a mid-p version of the McNemar exact conditional test for the analysis of paired binomial proportions.
Methods:
We compare the type I error rates and power of the mid-p test with those of the asymptotic McNemar test (with and without continuity correction), the McNemar exact conditional test, and an exact unconditional test using complete enumeration. We show how the mid-p test can be calculated using eight standard software packages, including Excel.
Results:
The mid-p test performs well compared with the asymptotic, asymptotic with continuity correction, and exact conditional tests, and almost as good as the vastly more complex exact unconditional test. Even though the mid-p test does not guarantee preservation of the significance level, it did not violate the nominal level in any of the 9595 scenarios considered in this article. It was almost as powerful as the asymptotic test. The exact conditional test and the asymptotic test with continuity correction did not perform well for any of the considered scenarios.
Conclusions:
The easy-to-calculate mid-p test is an excellent alternative to the complex exact unconditional test. Both can be recommended for use in any situation. We also recommend the asymptotic test if small but frequent violations of the nominal level is acceptable.
Related Concept Videos
McNemar's Test
Sign Test for Matched Pairs
To conduct the sign test, we first calculate the differences in value between...
Multiple Comparison Tests
It would be easy to compare two samples using a significance alpha level of 0.05. In other words, there is only one sample pair to be compared. However, it would be difficult to identify a significantly different sample if the number...
Wilcoxon Signed-Ranks Test for Matched Pairs
Bonferroni Test
The means of different samples are first paired in all possible combinations.
The null hypothesis of the...
Fisher's Exact Test