# McNemar's test for paired counts (exact and asymptotic), version 1.0.0

mcnemar\@1.0.0: this version's equations with their symbols, each constant's value, their sources and whether each was read, a worked example where the record holds one, its level and what it was checked against, the number of cases, and what was not checked. This version's record is not rewritten; a correction is added under Changes.

## What this page can and cannot show

**Level: Checked against a reference. Reference kind: not recorded. This level uses the apps' wider definition on the levels page.**

Not fully recorded, and not independently reviewed. Items marked "Not recorded" are missing from this project's records for the version named. Apart from any worked example shown, the cases and their values are not printed, so a reader cannot re-run these checks. No independent scientist has yet reviewed these methods or checks.

[Every version of this method](https://www.drybench.com/methods/m/mcnemar) · [Every method](https://www.drybench.com/methods/m) · [What the levels mean](https://www.drybench.com/methods/levels)

## Version 1.0.0

**Level: Checked against a reference. Reference kind: not recorded. This level uses the apps' wider definition on the levels page.** `mcnemar@1.0.0`

[What this page can and cannot show](#what-this-page-can-and-cannot-show)

### What was checked

Checked against R 4.4.3 (binom.test on the discordant pairs; mcnemar.test with and without the continuity correction) on the 7 paired cases of the 0.11.0 fixture: the exact p, both chi-squared statistics with their p, and the paired odds ratio b/c with its Clopper–Pearson limits within 1e-8 relative; a ratio that is not finite and withheld states exact (2026-10-13).

Cases: no case set is linked to mcnemar\@1.0.0.

### Not yet recorded for this version

- Equation: not recorded for mcnemar\@1.0.0.
- Constants: not recorded for mcnemar\@1.0.0.
- Worked example: not recorded for mcnemar\@1.0.0.
- Prediction error: not recorded.

### What was not checked

What was not checked: not recorded for mcnemar\@1.0.0. Its absence does not mean everything was checked.

### Changes

No correction is logged for mcnemar\@1.0.0.

## Tools that use it

- [`stats_contingency_table`](https://www.drybench.com/methods/tools/stats-contingency-table)

## Cite this version

McNemar's test for paired counts (exact and asymptotic). Drybench; mcnemar\@1.0.0; [https://www.drybench.com/methods/m/mcnemar/1.0.0](https://www.drybench.com/methods/m/mcnemar/1.0.0) (accessed \[date\]).
