© Springer International Publishing Switzerland 2016
Ton J. Cleophas and Aeilko H. ZwindermanSPSS for Starters and 2nd Levelers10.1007/978-3-319-20600-4_41

41. Paired Binary (McNemar Test) (139 General Practitioners)

Ton J. Cleophas1, 2  and Aeilko H. Zwinderman2, 3
(1)
Department Medicine, Albert Schweitzer Hospital, Dordrecht, The Netherlands
(2)
European College Pharmaceutical Medicine, Lyon, France
(3)
Department Biostatistics, Academic Medical Center, Amsterdam, The Netherlands
 

1 General Purpose

Paired proportions have to be assessed when e.g. different diagnostic tests are performed in one subject. E.g., 315 subjects are tested for hypertension using both an automated device (test-1) and a sphygmomanometer (test-2). 184 subjects scored positive with both tests and 63 scored negative with both tests. These 247 subjects, therefore, give us no information about which of the tests is more likely to score positive. The information we require is entirely contained in the 68 subjects for whom the tests did not agree (the discordant pairs). McNemar’s chi-square test is appropriate for analysis.

2 Schematic Overview of Type of Data File

A211753_2_En_41_Figa_HTML.gif

3 Primary Scientific Question

Is the number of yes-responders of outcome-1 significantly different from that of outcome-2.

4 Data Example

In a study of 139 general practitioners the primary scientific question was: is there a significant difference between the numbers of practitioners who give lifestyle advise in the periods before and after (postgraduate) education.
     
Life style advise after education
     
No
Yes
     
0
1
Life style advise
No
0
65
28
Before education
Yes
1
12
34
The above table summarizes the numbers of practitioners giving lifestyle advise in the periods prior to and after postgraduate education. Obviously, before education 65 + 28 = 93 did not give lifestyle, while after education this number fell to 77. It looks as though the education was somewhat sucessful.
Lifestyle advise-1
Lifestlye advise-2
,00
,00
,00
,00
,00
,00
,00
,00
,00
,00
,00
,00
,00
,00
,00
,00
,00
,00
,00
,00
0 = no, 1 = yes
The first ten patients of the data file is given above. The entire data file is in extras.springer.com, and is entitled “chapter41paired binary”. Start by opening the data file in SPSS.

5 3-D Chart of the Data

Command:
  • Graphs....3D Bar Chart....X-axis represents: Groups of cases....Z-axis represents: Groups of cases....Define....X Category Axis: lifestyleadvise after....Z Category Axis: lifestyleadvise before....click OK.
A211753_2_En_41_Figb_HTML.gif
The paired observations show that twice no lifestyleadvise was given by 65 practitioners, twice yes lifestyleadvise by 34 practitioners. Furthermore, 28 practitioners started to give lifestyleadvise after postgraduate education, while, in contrast, 12 stopped giving lifestyleadvise after the education program. McNemar’s test is used to statistically test the significance of difference.

6 Data Analysis: McNemar’s Test

For analysis the statistical model Two Related Samples in the module Nonparametric Tests is required.
Command:
  • Analyze....Nonparametric....Two Related Samples....Test Pairs....Pair 1....Variable 1: enter lifestyleadvise after....Variable 2: enter lifestytleadvise before....mark McNemar....click OK.
Lifestyleadvise before & lifestyleadvise after
Lifestyleadvise before
Lifestyleadvise after
,00
1,00
,00
65
28
1,00
12
34
Test statisticsa
 
Lifestyleadvise before & lifestyleadvise after
N
139
Chi-squareb
5,652
Asymp. Sig.
,018
aMcNemar Test
bContinuity Corrected
The above tables show that the McNemar test is statistically significant at a p-value of 0,018, which is a lot smaller than 0,05. The conclusion can be drawn, that a real difference between the numbers of practitioners giving lifestyle advise after and before postgraduate education is observed. The postgrade education has, obviously, been helpful.

7 Conclusion

Paired proportions have to be assessed when e.g. different diagnostic procedures are performed in one subject. McNemar’s chi-square test is appropriate for analysis. Mc Nemar’s test can not include predictor variables, and is not feasible for more than two outcomes. For that purpose Cochran’s tests are required (Chap. 43). The analysis of paired outcome proportions including predictor variables requires the module generalized estimating equations to be reviewed in the Chap. 42.

8 Note

More background, theoretical and mathematical information of paired binary outcomes are given in Statistics applied to clinical studies 5th edition, Chap.3, Springer Heidelberg Germany, 2012, from the same authors.
SPSS for Starters and 2nd Levelers
ACoverHTML.html
A211753_2_En_BookFrontmatter_OnlinePDF.html
A211753_2_En_1_ChapterPart1.html
A211753_2_En_1_Chapter.html
A211753_2_En_2_Chapter.html
A211753_2_En_3_Chapter.html
A211753_2_En_4_Chapter.html
A211753_2_En_5_Chapter.html
A211753_2_En_6_Chapter.html
A211753_2_En_7_Chapter.html
A211753_2_En_8_Chapter.html
A211753_2_En_9_Chapter.html
A211753_2_En_10_Chapter.html
A211753_2_En_11_Chapter.html
A211753_2_En_12_Chapter.html
A211753_2_En_13_Chapter.html
A211753_2_En_14_Chapter.html
A211753_2_En_15_Chapter.html
A211753_2_En_16_Chapter.html
A211753_2_En_17_Chapter.html
A211753_2_En_18_Chapter.html
A211753_2_En_19_Chapter.html
A211753_2_En_20_Chapter.html
A211753_2_En_21_Chapter.html
A211753_2_En_22_Chapter.html
A211753_2_En_23_Chapter.html
A211753_2_En_24_Chapter.html
A211753_2_En_25_Chapter.html
A211753_2_En_26_Chapter.html
A211753_2_En_27_Chapter.html
A211753_2_En_28_Chapter.html
A211753_2_En_29_Chapter.html
A211753_2_En_30_Chapter.html
A211753_2_En_31_Chapter.html
A211753_2_En_32_Chapter.html
A211753_2_En_33_Chapter.html
A211753_2_En_34_ChapterPart2.html
A211753_2_En_34_Chapter.html
A211753_2_En_35_Chapter.html
A211753_2_En_36_Chapter.html
A211753_2_En_37_Chapter.html
A211753_2_En_38_Chapter.html
A211753_2_En_39_Chapter.html
A211753_2_En_40_Chapter.html
A211753_2_En_41_Chapter.html
A211753_2_En_42_Chapter.html
A211753_2_En_43_Chapter.html
A211753_2_En_44_Chapter.html
A211753_2_En_45_Chapter.html
A211753_2_En_46_Chapter.html
A211753_2_En_47_Chapter.html
A211753_2_En_48_Chapter.html
A211753_2_En_49_Chapter.html
A211753_2_En_50_Chapter.html
A211753_2_En_51_Chapter.html
A211753_2_En_52_Chapter.html
A211753_2_En_53_Chapter.html
A211753_2_En_54_Chapter.html
A211753_2_En_55_ChapterPart3.html
A211753_2_En_55_Chapter.html
A211753_2_En_56_Chapter.html
A211753_2_En_57_Chapter.html
A211753_2_En_58_Chapter.html
A211753_2_En_59_Chapter.html
A211753_2_En_60_Chapter.html
A211753_2_En_BookBackmatter_OnlinePDF.html