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

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
|
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.

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
|
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.