McNemar test calculator
A McNemar test calculator for paired binary data that computes the test statistic and p-values from discordant counts.
Tool coming soon!
We're working hard to get this tool ready for you.
Build Your Own Custom Web Calculator in Seconds
Type what tool or calculator you need below. Our AI will build it instantly for your site.
About This Tool
Conceptually, the test compares changes between two correlated measurements within subjects. Only the discordant counts drive the statistic; identical outcomes cancel out. The standard asymptotic form uses a chi-square distribution with 1 degree of freedom: chi2 = (b - c)^2 / (b + c) when b+c > 0. A Yates continuity correction can be applied to reduce error in small samples, with chi2_cc = (|b - c| - 1)^2 / (b + c).
Outputs include the test statistic, p-values, and the total number of discordant pairs. The tool offers two modes: asymptotic calculation with or without continuity correction and an exact p-value based on a binomial model with n = b + c. The exact method produces p-values that are valid for small samples, while the asymptotic method is faster for large counts. This combination supports robust decision making and method validation.
Intended users are researchers conducting before-after studies, clinicians evaluating paired diagnostic outcomes, and data scientists validating matched-pairs analyses. The tool provides a minimal, transparent workflow focused on core counts and results, enabling quick checks during study design, analysis, and reporting. It is designed for statistical accuracy, reproducibility, and straightforward interpretation, avoiding unnecessary complexity while offering optional exact calculations for edge cases.
How to Use
- Provide inputs: enter b and c as non-negative integers.
- Choose calculation mode: select approximate (with or without continuity correction) or exact.
- Run calculation: trigger the internal computation.
- Review outputs: read the chi-square statistic and p-values, with n = b + c.
- Interpret results: determine whether changes differ significantly at your chosen alpha level.
Frequently Asked Questions
Find Quick Answers
What do b and c represent?
What if b+c equals zero?
When should I use exact p-value?
Need to run multiple calculations?
Create a free account today to unlock unlimited daily runs, access advanced parameters, save your history, and request custom features.
Related Tools
Other useful calculators and utilities you might like
Road Distance Calculator
Calculate the driving distance and travel time between two addresses with our free online road dista...
Spotify to MP3 Converter
Convert Spotify tracks and playlists to MP3 format instantly with our free online converter.
Your Feedback Matters
Help Us to Improve
Norwegian
Danish
German
English
Spanish
French
Italian
Dutch
Portuguese
Swedish
Hebrew
Arabic