Skip to content
Categorical data

McNemar's test

Compare paired binary responses.

All methods

Requirements

  • paired binary outcome
  • before/after or matched pairs

Avoid when

  • independent groups

Formula

χ² = (b−c)²/(b+c)

Interpretation

Tests symmetry of discordant paired responses.

Example use case

Compare paired binary diagnoses from two tests applied to the same patients.

Open example datasets