Skip to main content icon/video/no-internet

McNemar Test

It is often of interest to examine changes in the dichotomous categorical responses taken from subjects before and then after some treatment condition is imposed (i.e., evaluating repeated measurements of the same subjects using them as their own controls). In 1947, psychologist Quinn McNemar developed a simple and valuable technique for comparing differences between the proportions in the responses before and after.

McNemar’s procedure has enjoyed widespread usage in both behavioral and medical research and some attention in business, particularly with applications in advertising or marketing research, wherein it may be desirable to evaluate the significance of changes in attitudes and opinions as observed in brand loyalty and switching patterns. In this same context, McNemar’s procedure may be employed to assess the results of a two-candidate political debate and is dependent on appropriate opinion polling methodology.

Opinion polls are surveys of public opinions. Opinion polls are conducted by soliciting opinions from a sample and then extrapolating those results to make predictions about the opinions of an entire population.

Developing a Test for Significance of Changes in Related Proportions

The dichotomous responses from a sample of n individuals over two periods of time (i.e., before and after a treatment intervention such as a political debate) may be tallied into a 2 ×2 table of cross-classifications as shown in Table 1.

With respect to the population from which the aforementioned sample was taken, let pij=xij/n be the probability of responses to the ith category before the treatment intervention was imposed and the jth category after.

To assess changes in repeated dichotomous responses, the null hypothesis is that of symmetry:

H 0 : p 12 = p 21 .

That is, the null hypothesis tested is conditioned on those n = x12 + x21 individuals whose responses change, where the probability (p21) of a switch from B to A is equal to the probability (p12) of a switch from A to B, and that this probability is 0.5.

Under the null hypothesis, the random variable x12 is binomially distributed with parameters n and 0.5, as is the random variable x21 The expected value of each of these binomial distributions is 0.5n, and the variance for each is 0.25n. McNemar’s procedure enables an exact test of the null hypothesis using the binomial probability distribution with parameters n and 0.5.

The McNemar test statistic M, written as Min[x12,x21] is defined as the minimum of the response tallies x12 or x21 in the cross-classification table (i.e., Table 1).

For a two-tailed test, the null hypothesis can be rejected at the α level of significance if

P ( M M i n [ x 12 , x 21 ] | n , p 12 = p 21 = 0 . 5 ) = M = 0 M i n [ x 12 , x 21 ] n ! M ! ( n M ) ! ( 0 . 5 ) n α / 2 .

...

  • Loading...
locked icon

Sign in to access this content

Get a 30 day FREE TRIAL

  • Watch videos from a variety of sources bringing classroom topics to life
  • Read modern, diverse business cases
  • Explore hundreds of books and reference titles

Sage Recommends

We found other relevant content for you on other Sage platforms.

Loading