M

McNemar’s Test

McNemar's Test is a statistical test used for paired nominal data to assess changes in responses.

McNemar’s Test

McNemar’s Test is a statistical method used to analyze paired nominal data, specifically when you want to evaluate the differences in responses from the same subjects under two different conditions. This test is particularly useful in situations where you have a binary outcome (yes/no, success/failure) measured before and after an intervention or treatment.

The primary purpose of McNemar’s Test is to determine if there are significant changes in the proportions of categorical responses. It is often applied in clinical trials, surveys, and other studies where participants are assessed twice. For example, it can be used to analyze whether patients’ conditions improved after a certain treatment.

To perform McNemar’s Test, you typically create a 2×2 contingency table that summarizes the counts of outcomes in the following categories:

  • Count of subjects who were positive before and positive after the treatment.
  • Count of subjects who were positive before and negative after the treatment.
  • Count of subjects who were negative before and positive after the treatment.
  • Count of subjects who were negative both before and after the treatment.

McNemar’s Test specifically focuses on the discordant pairs (those who changed their responses) and uses the formula:

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

where b is the count of subjects who changed from positive to negative, and c is the count of those who changed from negative to positive. The resulting chi-square value can be compared to a critical value from the chi-square distribution to determine statistical significance.

In summary, McNemar’s Test is a valuable tool for researchers analyzing the effects of interventions on binary outcomes, helping to clarify whether observed changes in data are statistically significant.

Ctrl + /