Effective use of the McNemar test
Open accessThe DOI matches its Crossref record; 8 of the 8 references it cites were found in a registry or an index.
Abstract
It is not uncommon for researchers to want to interrogate paired binomial data. For example, researchers may want to compare an organism’s response (positive or negative) to two different stimuli. If they apply both stimuli to a sample of individuals, it would be natural to present the data in a 2 × 2 table. There would be two cells with concordant results (the frequency of individuals which responded positively or negatively to both stimuli) and two cells with discordant results (the frequency of individuals who responded positively to one stimulus, but negatively to the other). The key issue is whether the totals in the two discordant cells are sufficiently different to suggest that the stimuli trigger different reactions. In terms of the null hypothesis testing paradigm, this would translate as a P value which is the probability of seeing the observed difference in these two values or a more extreme difference if the two stimuli produced an identical reaction. The statistical test designed to provide this P value is the McNemar test. Here, we seek to promote greater and better use of the McNemar test. To achieve this, we fully describe a range of circumstances within biological research where it can be effectively applied, describe the different variants of the test that exist, explain how these variants can be accessed in R, and offer guidance on which of these variants to adopt. To support our arguments, we highlight key recent methodological advances and compare these with a novel survey of current usage of the test. Significance statement: When analysing paired binomial data, researchers appear to reflexively apply a chi-squared test, with the McNemar test being largely overlooked, despite it often being more appropriate. As these tests evaluate a different null hypothesis, selecting the appropriate test is essential for effective analysis. When using the McNemar test, there are four methods that can be applied. Recent advice has outlined clear guidelines on which method should be used. By conducting a survey, we provide support for these guidelines, but identify that the method chosen in publications is rarely specified or the most appropriate. Our study provides clear guidance on which method researchers should select and highlights examples of when this test should be used and how it can be implemented easily to improve future research.
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
R: A Language and Environment for Statistical Computing
R Core Team (2025) · doi:10.32614/r.manuals · Cited by 352,181
Hapeman, D. E. (1991) · Technometrics · doi:10.1080/00401706.1991.10484817 · Cited by 9,373
(2010) · Encyclopedia of Research Design · doi:10.4135/9781412961288.n40 · Cited by 1,995
Fagerland, M. W., Lydersen, S., & Laake, P. (2013) · BMC Medical Research Methodology · doi:10.1186/1471-2288-13-91 · Cited by 403
Recommended tests and confidence intervals for paired binomial proportions
Fagerland, M. W., Lydersen, S., & Laake, P. (2014) · Statistics in Medicine · doi:10.1002/sim.6148 · Cited by 146
The role of diversity in science: a case study of women advancing female birdsong research
Haines, C. D., Rose, E. M., Odom, K. J., & Omland, K. E. (2020) · Animal Behaviour · doi:10.1016/j.anbehav.2020.07.021 · Cited by 83
Female toads engaging in adaptive hybridization prefer high-quality heterospecifics as mates
Chen, C., & Pfennig, K. S. (2020) · Science · doi:10.1126/science.aaz5109 · Cited by 36
Skukan, R., Borrell, Y. J., Ordás, J. M. R., & Miralles, L. (2020) · The Journal of Environmental Education · doi:10.1080/00958964.2019.1688226 · Cited by 23
Cited by
Integrating Accessibility in a Mobile App Development Course
Bhatia, J. S., P D, P., Tiwari, S., Nagpal, D., & Joshi, S. (2023) · Proceedings of the 54th ACM Technical Symposium on Computer Science Education V. 1 · doi:10.1145/3545945.3569825 · Cited by 21
“Since we have dichotomous dependent variables in each category —either the participants ‘considered’ the category or they ‘did not consider’ it— and we have taken repeated measurements, we use McNemar’s test [23] to determine if there was a significant difference between the two measurements in each category.”
MethodKlappe, E. S., Heijmans, J., Groen, K., ter Schure, J., Cornet, R., & de Keizer, N. F. (2023) · International Journal of Medical Informatics · doi:10.1016/j.ijmedinf.2023.105264 · Cited by 15
Hasan, M. M., Li, H., Rajbahadur, G. K., Adams, B., & Hassan, A. E. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3858625 · Cited by 4
Metadata
- Authors
- Pembury Smith, M. Q. R., & Ruxton, G. D.
- Venue
- Behavioral Ecology and Sociobiology
- Published
- 2020-10-10
- Volume
- 74
- Issue
- 11
- ISSN
- 0340-5443 (ISSN-L)
- 1432-0762
- OpenAlex
- W3091963033
- Cited by
- 263
- References
- 8
- FWCI
- 13.65
- Type
- journal article
- Language
- en
- Open access
- hybrid
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.