The McNemar test for binary matched-pairs data: mid-p and asymptotic are better than exact conditional
Open accessThe DOI matches its Crossref record; 20 of the 20 references it cites were found in a registry or an index.
Abstract
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.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Statistical Methods for Rates and Proportions
Fleiss, J. L., Levin, B., & Paik, M. C. (2003) · Wiley Series in Probability and Statistics · doi:10.1002/0471445428 · Cited by 18,646
Practical Statistics for Medical Research.
Walter, S. D., & Altman, D. G. (1992) · Biometrics · doi:10.2307/2532320 · Cited by 11,668
Practical Statistics for Medical Research
Altman, D. G. (1990) · doi:10.1201/9780429258589 · Cited by 10,668
Hapeman, D. E. (1991) · Technometrics · doi:10.1080/00401706.1991.10484817 · Cited by 9,373
Practical Statistics for Medical Research.
Bartko, J. J., & Altman, D. G. (1992) · Journal of the American Statistical Association · doi:10.2307/2290246 · Cited by 4,797
Note on the Sampling Error of the Difference Between Correlated Proportions or Percentages
McNemar, Q. (1947) · Psychometrika · doi:10.1007/bf02295996 · Cited by 4,754
Cavo, M., Pantani, L., Petrucci, M. T., Patriarca, F., Zamagni, E., Donnarumma, D., Crippa, C., Boccadoro, M., Perrone, G., Falcone, A., et al. (2012) · Blood · doi:10.1182/blood-2012-02-408898 · Cited by 308
Recommended tests for association in 2×2 tables
Lydersen, S., Fagerland, M. W., & Laake, P. (2009) · Statistics in Medicine · doi:10.1002/sim.3531 · Cited by 308
Self-citationSignificance Tests in Discrete Distributions
Lancaster, H. O. (1961) · Journal of the American Statistical Association · doi:10.1080/01621459.1961.10482105 · Cited by 272
Edwards, A. L. (1948) · Psychometrika · doi:10.1007/bf02289261 · Cited by 197
Yates's correction for continuity and the analysis of 2 × 2 contingency tables
Haviland, M. G. (1990) · Statistics in Medicine · doi:10.1002/sim.4780090403 · Cited by 158
Agresti, A. (2003) · Statistical Methods in Medical Research · doi:10.1191/0962280203sm311ra · Cited by 106
A quasi‐exact test for comparing two binomial proportions
Hirji, K. F., Tan, S., & Elashoff, R. M. (1991) · Statistics in Medicine · doi:10.1002/sim.4780100713 · Cited by 99
Exact Analysis of Discrete Data
(2008) · Technometrics · doi:10.1198/tech.2008.s908 · Cited by 84
Mehta, C. R., & Walsh, S. J. (1992) · The American Statistician · doi:10.1080/00031305.1992.10475871 · Cited by 84
Exact Analysis of Discrete Data
Hirji, K. F. (2005) · Chapman & Hall/CRC eBooks · doi:10.1201/9781420036190 · Cited by 78
Note on the $N=2$ super Yang-Mills gauge theory in a noncommutative differential geometry
Okumura, Y. (1998) · The European Physical Journal C · doi:10.1007/s100520050119 · Cited by 75
The 2 x 2 Matched-Pairs Trial: Exact Unconditional Design and Analysis
Suissa, S., & Shuster, J. J. (1991) · Biometrics · doi:10.2307/2532131 · Cited by 71
A New Exact and More Powerful Unconditional Test of No Treatment Effect from Binary Matched Pairs
Lloyd, C. J. (2007) · Biometrics · doi:10.1111/j.1541-0420.2007.00936.x · Cited by 40
Lydersen, S., & Laake, P. (2003) · Statistics in Medicine · doi:10.1002/sim.1671 · Cited by 24
Self-citation
Cited by
Few-Shot Learning approach for plant disease classification using images taken in the field
Argüeso, D., Picon, A., Irusta, U., Medela, A., San-Emeterio, M. G., Bereciartua, A., & Alvarez-Gila, A. (2020) · Computers and Electronics in Agriculture · doi:10.1016/j.compag.2020.105542 · Cited by 369
Effective use of the McNemar test
Pembury Smith, M. Q. R., & Ruxton, G. D. (2020) · Behavioral Ecology and Sociobiology · doi:10.1007/s00265-020-02916-y · Cited by 263
Silvestri, G. A., Tanner, N. T., Kearney, P., Vachani, A., Massion, P. P., Porter, A., Springmeyer, S. C., Fang, K. C., Midthun, D., Mazzone, P. J., et al. (2018) · Chest · doi:10.1016/j.chest.2018.02.012 · Cited by 165
“For comparison of cancer risk predictors, the McNemar statistical test was used at a fixed sensitivity or specificity.(13)”
MethodWe Need to Talk about Standard Splits
Gorman, K., & Bedrick, S. (2019) · Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics · doi:10.18653/v1/p19-1267 · Cited by 99
“We compute 95% Wilson (1927) score confidence intervals for accuracies, and use the two-sided mid-p variant (Fagerland et al., 2013) of McNemar’s test for sys-tem comparison.”
MethodBjureberg, J., Sahlin, H., Hedman-Lagerlöf, E., Gratz, K. L., Tull, M. T., Jokinen, J., Hellner, C., & Ljótsson, B. (2018) · BMC Psychiatry · doi:10.1186/s12888-018-1885-6 · Cited by 96
“Finally, we calculated the number of participants who reported no (zero) NSSI episodes at pre-treatment, post-treatment, and 3- and 6-month follow-up and used McNemar’s mid-p test [62] to analyze the changes between the assessment points (list-wise deletion was used in these specific analyses when data were missing).”
Method
Metadata
- Authors
- Fagerland, M. W., Lydersen, S., & Laake, P.
- Venue
- BMC Medical Research Methodology
- Published
- 2013-07-13
- Volume
- 13
- Issue
- 1
- Pages
- 91-91
- ISSN
- 1471-2288 (ISSN-L)
- OpenAlex
- W2092170487
- Cited by
- 403
- References
- 20
- FWCI
- 7.46
- Type
- journal article
- Language
- en
- Open access
- gold
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.