---
title: The McNemar's test
description: "\"The McNemar's test is an alternative to the Chi\\xC2\\xB2 test, that compares proportions between group, for paired data. Paired data are data where pairs…"
---

[Skip to content](https://help.easymedstat.com/support/solutions/articles/77000401688-the-mcnemar-s-test#main-content)

English

Show submenu for translations

![](https://help.easymedstat.com/hs-fs/hubfs/Logo%20EMS%20HQ%20Noir-1.png?width=366&height=70&name=Logo%20EMS%20HQ%20Noir-1.png)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [Open a ticket](https://t3jiy.share-eu1.hsforms.com/2pRawwxfuSS6Scx4Qn4KSPA)

[Open a ticket](https://t3jiy.share-eu1.hsforms.com/2pRawwxfuSS6Scx4Qn4KSPA)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [EasyMedStat Knowledge Base](https://help.easymedstat.com/?hsLang=en)
2. [Statistical analyses](https://help.easymedstat.com/statistical-analyses?hsLang=en)
3. [Statistical tests](https://help.easymedstat.com/statistical-analyses?hsLang=en#statistical-tests)

# The McNemar's test

# Definition

The **McNemar's test** is an alternative to the Chi² test, that compares proportions between group, for **paired data**. Paired data are data where pairs are less different from each other than from another data of the dataset.

# In practice

This test has to be used when you compare proportions between paired groups like cases and controles or before and after treatment.   
The odd ratio (OR) given is computed as:

OR =  proportion of patients having not the outcome before intervention & having the outcome after intevention  
         proportion of patients having the outcome before intervention & having not the outcome after intevention

If the OR is superior to 1, it has to be understood as "the percentage of patients free from the outcome before treatment that have got the outcome after treatment is more important than the percentage of  patients not free from the outcome before treatment that haven't got the outcome after treatment". 

For example, if the outcome is "Healthy" = 1, an OR superior to 1 could be understood as "the percentage of sick patients that become healthy after treatment is more important than the percentage of healthy patients that become sick after treatment". 

- Post treatment Healthy = 1 — **Pre treatment Healthy= 1** : a — **Pre treatment Healthy = 0** : b
- Post treatment Healthy = 0 — **Pre treatment Healthy= 1** : c — **Pre treatment Healthy = 0** : d

# How to use it on EasyMedStat ?

1. Go to Statistics \> Test 2 variables
2. Select two Yes-No variables you would like to compare taking care of the following order: the first variable field on the left side of the page is for the pre-treatment variable, the second variable field on the right side of the page is for the post-treatment variable.
3. Click on "Compare pre-post treatment proportions"

# See also

- [Paired data](https://help.easymedstat.com/support/solutions/articles/77000401292-paired-data?hsLang=en)
- [The Student's paired test](https://help.easymedstat.com/support/solutions/articles/77000401223-the-student-s-paired-test?hsLang=en)
- [The Wilcoxon Signed Rank test](https://help.easymedstat.com/support/solutions/articles/77000401288-the-wilcoxon-s-signed-rank-test?hsLang=en)

- [Account](https://help.easymedstat.com/account?hsLang=en#main-content)

    - [Account](https://help.easymedstat.com/account?hsLang=en#account)
- [Collect data](https://help.easymedstat.com/collect-data?hsLang=en#main-content)

    - [Questionnaires (ePRO)](https://help.easymedstat.com/collect-data?hsLang=en#questionnaires-epro)
    - [Add and edit patients](https://help.easymedstat.com/collect-data?hsLang=en#add-and-edit-patients)
    - [Randomization](https://help.easymedstat.com/collect-data?hsLang=en#randomization)
    - [Export](https://help.easymedstat.com/collect-data?hsLang=en#export)
    - [Create a series / eCRF](https://help.easymedstat.com/collect-data?hsLang=en#create-a-series-ecrf)
    - [Multilingual studies](https://help.easymedstat.com/collect-data?hsLang=en#multilingual-studies)
- [Variables](https://help.easymedstat.com/variables?hsLang=en#main-content)

    - [Organize in categories](https://help.easymedstat.com/variables?hsLang=en#organize-in-categories)
    - [Dynamic Variables](https://help.easymedstat.com/variables?hsLang=en#dynamic-variables)
    - [Manage variables](https://help.easymedstat.com/variables?hsLang=en#manage-variables)
- [Statistical analyses](https://help.easymedstat.com/statistical-analyses?hsLang=en#main-content)

    - [Statistical tests](https://help.easymedstat.com/statistical-analyses?hsLang=en#statistical-tests)
    - [Compare groups](https://help.easymedstat.com/statistical-analyses?hsLang=en#compare-groups)
    - [Multivariate analysis](https://help.easymedstat.com/statistical-analyses?hsLang=en#multivariate-analysis)
    - [Filter patients](https://help.easymedstat.com/statistical-analyses?hsLang=en#filter-patients)
    - [Descriptive Statistics](https://help.easymedstat.com/statistical-analyses?hsLang=en#descriptive-statistics)
- [Collaborate](https://help.easymedstat.com/collaborate?hsLang=en#main-content)

    - [Share your series](https://help.easymedstat.com/collaborate?hsLang=en#share-your-series)
    - [Manage your organization](https://help.easymedstat.com/collaborate?hsLang=en#manage-your-organization)
- [Monitoring](https://help.easymedstat.com/monitoring?hsLang=en#main-content)

    - [Automations](https://help.easymedstat.com/monitoring?hsLang=en#automations)
    - [Electronic Signatures](https://help.easymedstat.com/monitoring?hsLang=en#electronic-signatures)
    - [Queries](https://help.easymedstat.com/monitoring?hsLang=en#queries)
    - [Clean data](https://help.easymedstat.com/monitoring?hsLang=en#clean-data)

[![](https://help.easymedstat.com/hs-fs/hubfs/Logo%20EMS%20HQ%20Noir-1.png?width=366&height=70&name=Logo%20EMS%20HQ%20Noir-1.png)](http://www.easymedstat.com)

<https://www.linkedin.com/company/easymedstat/> <https://www.youtube.com/@easymedstat9719> [mailto:support@easymedstat.com](mailto:support@easymedstat.com)

Copyright © 2026, EasyMedStat