Professional Documents
Culture Documents
Textbook Statistical Analysis of Contingency Tables 1St Edition Fagerland Ebook All Chapter PDF
Textbook Statistical Analysis of Contingency Tables 1St Edition Fagerland Ebook All Chapter PDF
https://textbookfull.com/product/statistical-analysis-of-
ecotoxicity-studies-first-edition-green/
https://textbookfull.com/product/basic-and-advanced-statistical-
tests-writing-results-sections-and-creating-tables-and-
figures-1st-edition-amanda-ross/
https://textbookfull.com/product/statistical-analysis-in-
proteomics-1st-edition-klaus-jung-eds/
https://textbookfull.com/product/statistical-data-analysis-using-
sas-intermediate-statistical-methods-mervyn-g-marasinghe/
Contingency Table Analysis Methods and Implementation
Using R Statistics for Industry and Technology Kateri
https://textbookfull.com/product/contingency-table-analysis-
methods-and-implementation-using-r-statistics-for-industry-and-
technology-kateri/
https://textbookfull.com/product/statistical-analysis-of-
financial-data-with-examples-in-r-1st-edition-james-gentle/
https://textbookfull.com/product/statistical-methods-an-
introduction-to-basic-statistical-concepts-and-analysis-2nd-
edition-cheryl-ann-willard/
https://textbookfull.com/product/handbook-of-statistical-
analysis-and-data-mining-applications-2nd-edition-robert-nisbet/
https://textbookfull.com/product/statistical-independence-in-
probability-analysis-number-theory-kac/
STATISTICAL
ANALYSIS OF
CONTINGENCY
TABLES
STATISTICAL
ANALYSIS OF
CONTINGENCY
TABLES
MORTEN W. FAGERLAND
STIAN LYDERSEN
PETTER LAAKE
CRC Press
Taylor & Francis Group
6000 Broken Sound Parkway NW, Suite 300
Boca Raton, FL 33487-2742
This book contains information obtained from authentic and highly regarded sources. Reasonable
efforts have been made to publish reliable data and information, but the author and publisher cannot
assume responsibility for the validity of all materials or the consequences of their use. The authors and
publishers have attempted to trace the copyright holders of all material reproduced in this publication
and apologize to copyright holders if permission to publish in this form has not been obtained. If any
copyright material has not been acknowledged please write and let us know so we may rectify in any
future reprint.
Except as permitted under U.S. Copyright Law, no part of this book may be reprinted, reproduced,
transmitted, or utilized in any form by any electronic, mechanical, or other means, now known or
hereafter invented, including photocopying, microfilming, and recording, or in any information storage
or retrieval system, without written permission from the publishers.
For permission to photocopy or use material electronically from this work, please access
www.copyright.com (http://www.copyright.com/) or contact the Copyright Clearance Center, Inc.
(CCC), 222 Rosewood Drive, Danvers, MA 01923, 978-750-8400. CCC is a not-for-profit organization
that provides licenses and registration for a variety of users. For organizations that have been granted
a photocopy license by the CCC, a separate system of payment has been arranged.
Trademark Notice: Product or corporate names may be trademarks or registered trademarks, and
are used only for identification and explanation without intent to infringe.
Names: Fagerland, Morten W., 1974- | Lydersen, Stian. | Laake, Petter, 1947-
Title: Statistical analysis of contingency tables / Morten W. Fagerland,
Stian Lydersen, Petter Laake.
Description: Boca Raton, Florida : CRC Press, [2017] | Includes
bibliographical references and index.
Identifiers: LCCN 2017009369| ISBN 9781466588172 (hardback) | ISBN
9781315374116 (e-book) | ISBN 9781466588189 (adobe reader) | ISBN
9781315356556 (epub) | ISBN 9781315337494 (mobi/kindle)
Subjects: LCSH: Contingency tables. | Mathematical statistics.
Classification: LCC QA278.75 .F34 2017 | DDC 519.5--dc23
LC record available at https://lccn.loc.gov/2017009369
Preface xxi
1 Introduction 1
1.1 Categorical Variables . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Contingency Tables . . . . . . . . . . . . . . . . . . . . . . 2
1.3 Statistical Inference for Contingency Tables . . . . . . . . . 4
1.3.1 Notation and Concepts . . . . . . . . . . . . . . . . 5
1.3.2 Effect Measures and Effect Estimates . . . . . . . . 6
1.3.3 Confidence Intervals . . . . . . . . . . . . . . . . . . 7
1.3.4 Hypothesis Tests . . . . . . . . . . . . . . . . . . . . 7
1.4 Properties of Confidence Intervals and Hypothesis Tests . . 8
1.4.1 Basic Properties . . . . . . . . . . . . . . . . . . . . 8
1.4.2 Evaluation Criteria for Confidence Intervals . . . . . 10
1.4.3 Evaluation Criteria for Hypothesis Tests . . . . . . 12
1.5 Generalized Linear Models . . . . . . . . . . . . . . . . . . . 13
1.5.1 Introduction . . . . . . . . . . . . . . . . . . . . . . 13
1.5.2 Link Functions for the Binomial Distribution . . . . 14
1.5.3 Loglinear Models versus Logit Link . . . . . . . . . 17
1.6 Exponential Family . . . . . . . . . . . . . . . . . . . . . . . 18
1.6.1 Definitions . . . . . . . . . . . . . . . . . . . . . . . 18
1.6.2 UMP Unbiased Tests . . . . . . . . . . . . . . . . . 19
1.7 Wald, Likelihood Ratio, and Score Inference . . . . . . . . . 23
1.8 Deviance, Likelihood Ratio Tests, and Pearson Chi-Squared
Tests for Generalized Linear Models . . . . . . . . . . . . . 25
1.9 Exact Methods . . . . . . . . . . . . . . . . . . . . . . . . . 27
1.10 The Mid-P Approach . . . . . . . . . . . . . . . . . . . . . 28
1.11 Bayes Inference . . . . . . . . . . . . . . . . . . . . . . . . . 29
v
vi Contents
3.7.1 Summary . . . . . . . . . . . . . . . . . . . . . . . . 83
3.7.2 Tests for the Multinomial Parameters . . . . . . . . 84
3.7.3 Confidence Intervals for the Multinomial Parameters 84
4 The 2 × 2 Table 85
4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
4.2 Sampling Models, Study Designs, and Examples . . . . . . 86
4.2.1 Both Margins Fixed Model . . . . . . . . . . . . . . 86
4.2.2 Row Margins Fixed Model . . . . . . . . . . . . . . 86
4.2.3 Column Margins Fixed Model . . . . . . . . . . . . 87
4.2.4 Total Sum Fixed Model . . . . . . . . . . . . . . . . 87
4.2.5 No Sums Fixed Model . . . . . . . . . . . . . . . . . 88
4.2.6 Inverse Sampling . . . . . . . . . . . . . . . . . . . . 89
4.3 Probabilities, Probability Models, and Link Functions . . . 89
4.3.1 Probabilities and Probability Models . . . . . . . . 89
4.3.2 Link Functions for the 2 × 2 Table . . . . . . . . . . 92
4.4 Tests for Association . . . . . . . . . . . . . . . . . . . . . . 93
4.4.1 The Null and Alternative Hypotheses . . . . . . . . 93
4.4.2 The Pearson Chi-Squared Test . . . . . . . . . . . . 93
4.4.3 The Likelihood Ratio Test . . . . . . . . . . . . . . 94
4.4.4 Tests Based on the Difference between Proportions 95
4.4.5 The Fisher Exact Test . . . . . . . . . . . . . . . . . 96
4.4.6 The Fisher Mid-P Test . . . . . . . . . . . . . . . . 97
4.4.7 Exact Unconditional Tests . . . . . . . . . . . . . . 98
4.4.8 Examples . . . . . . . . . . . . . . . . . . . . . . . . 99
4.4.9 Evaluation of Tests . . . . . . . . . . . . . . . . . . 105
4.5 Confidence Intervals for the Difference between Probabilities 113
4.5.1 Introduction and Estimation . . . . . . . . . . . . . 113
4.5.2 The Wald Interval . . . . . . . . . . . . . . . . . . . 115
4.5.3 The Agresti-Caffo Interval . . . . . . . . . . . . . . 115
4.5.4 The Newcombe Hybrid Score Interval . . . . . . . . 116
4.5.5 Asymptotic Score Intervals . . . . . . . . . . . . . . 116
4.5.6 Exact Unconditional Intervals . . . . . . . . . . . . 117
4.5.7 Examples . . . . . . . . . . . . . . . . . . . . . . . . 119
4.5.8 Evaluation of Intervals . . . . . . . . . . . . . . . . 123
4.6 Confidence Intervals for the Number Needed to Treat . . . 130
4.6.1 Introduction . . . . . . . . . . . . . . . . . . . . . . 130
4.6.2 Estimation . . . . . . . . . . . . . . . . . . . . . . . 130
4.6.3 Confidence Intervals . . . . . . . . . . . . . . . . . . 131
4.6.4 Examples . . . . . . . . . . . . . . . . . . . . . . . . 131
4.7 Confidence Intervals for the Ratio of Probabilities . . . . . 133
4.7.1 Introduction and Estimation . . . . . . . . . . . . . 133
4.7.2 Log Intervals . . . . . . . . . . . . . . . . . . . . . . 134
4.7.3 The Price and Bonett Approximate Bayes Interval . 135
4.7.4 Inverse Hyperbolic Sine Intervals . . . . . . . . . . . 136
viii Contents
A Appendix 577
A.1 List of Statistical Methods . . . . . . . . . . . . . . . . . . . 577
A.2 List of Examples . . . . . . . . . . . . . . . . . . . . . . . . 587
Bibliography 591
Index 619
Preface
xxi
xxii Statistical Analysis of Contingency Tables
Chapters 2–11 are organized by table size and type. Each chapter deals
with one particular type of table, characterized by size (the number of rows
and the number of columns), whether the variables are ordinal or nominal,
whether the tables are stratified or not, and whether the observations are
paired or unpaired. The start of each chapter describes relevant study and
sampling designs, followed by real-life data examples and relevant statisti-
cal models. The main part of each chapter contains descriptions of the most
important and interesting statistical methods. The methods are divided into
confidence intervals for relevant effect measures—such as the difference be-
tween probabilities, the ratio of probabilities, and the odds ratio—and hy-
pothesis tests. Within each section, the methods are illustrated with data
examples, and their properties are evaluated according to criteria described in
Section 1.4. Each chapter ends with recommendations for which methods to
use and when to use them. These chapters are to a large extent self-standing,
such that a reader will find all that he or she needs to analyze a particular
table type in the corresponding chapter, without having to read the preceding
chapters.
To ease guidance for the reader, we also provide an appendix with a list of
the 250 methods described in these chapters, with recommendations marked,
and with page references to where the methods are defined. Also included in
the appendix is a list of examples with page references to where the examples
are introduced and analyzed.
Chapter 12 deals with sample size and power calculations, and includes
descriptions of the superiority, equivalence, and non-inferiority study designs.
The last chapter in this book, Chapter 13, contains miscellaneous top-
ics: diagnostic accuracy, inter-rater agreement, missing data, structural zeros,
categorization of continuous variable, and ecological inference.
At the book’s website http://contingencytables.com, you will find Mat-
lab and R-code for almost all the methods described in this book. The website
also includes a list of errata and contact information for the authors. Please
contact us if you discover any errors or have comments or questions about the
book.
1
2 Statistical Analysis of Contingency Tables
TABLE 1.1
The general setup for the observed counts of a one-way 1 × c
contingency table, where c ≥ 2
Variable 1
Category 1 Category 2 . . . Category c Total
Sample n1 n2 ... nc N
The general setup for the two-way contingency table is shown in Table 1.2.
We now assume that we have two categorical variables: Variable 1 with r out-
come categories, and Variable 2 with c outcome categories. We let Variable 1
form the rows and Variable 2 the columns, such that we have a r × c con-
tingency table. The observed counts are denoted by nij , where i = 1, . . . , r
indexes the outcomes of Variable 1, and j = 1, . . . , c indexes
P the outcomes of
Variable 2. The sum of all the nij s is given by N = i,j nij . An additional
feature of the two-way contingency table is the marginal sums. These are given
as ni+ (row margins) and n+j (column margins). The row margins sum to N ,
and the column margins sum to N .
TABLE 1.2
The general setup for the observed counts of a two-way r × c contingency
table, where r ≥ 2 and c ≥ 2
Variable 2
Variable 1 Category 1 Category 2 . . . Category c Total
Category 1 n11 n12 ... n1c n1+
Category 2 n21 n22 ... n2c n2+
.. .. .. .. .. ..
. . . . . .
Category r nr1 nr2 ... nrc nr+
Total n+1 n+2 ... n+c N
4 Statistical Analysis of Contingency Tables
Agriculture
Forestry
Cattle Industry
Manufactures
Mining