Statsly
categorical

McNemar's test

Compare paired binary responses.

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.

Worked example

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

Open example datasets