Preface |
|
ix | |
Acknowledgements |
|
xi | |
|
|
xiii | |
Introduction |
|
1 | (2) |
|
|
3 | (38) |
|
1.1 Installing and using R |
|
|
3 | (1) |
|
1.2 Documenting your code and results |
|
|
3 | (3) |
|
|
6 | (15) |
|
|
21 | (7) |
|
|
28 | (5) |
|
1.6 Tables and arrays for results |
|
|
33 | (2) |
|
|
35 | (2) |
|
|
37 | (2) |
|
1.9 tidyverse and data, table |
|
|
39 | (2) |
|
2 Measures of disease occurrence |
|
|
41 | (6) |
|
|
41 | (1) |
|
|
42 | (2) |
|
|
44 | (1) |
|
2.4 Standardized mortality ratio |
|
|
44 | (1) |
|
|
45 | (2) |
|
3 Prevalence data---models, likelihood, and binomial regression |
|
|
47 | (18) |
|
|
47 | (8) |
|
|
55 | (5) |
|
3.3 Comparing different models for the same data |
|
|
60 | (5) |
|
|
65 | (28) |
|
|
65 | (1) |
|
4.2 Normal linear regression model |
|
|
66 | (1) |
|
4.3 Simple linear regression |
|
|
67 | (1) |
|
|
68 | (6) |
|
|
74 | (1) |
|
4.6 Regression models and generalized linear models |
|
|
75 | (8) |
|
4.7 Collinearity and aliasing |
|
|
83 | (4) |
|
4.8 Logarithmic transformations |
|
|
87 | (6) |
|
5 Analysis of follow-up data |
|
|
93 | (26) |
|
|
93 | (1) |
|
|
94 | (3) |
|
5.3 Representation of follow-up data |
|
|
97 | (4) |
|
5.4 Splitting the follow-up time along a time-scale |
|
|
101 | (3) |
|
5.5 Smooth age-effects for rates |
|
|
104 | (3) |
|
|
107 | (4) |
|
5.7 Time-dependent variables |
|
|
111 | (8) |
|
6 Parametrization and prediction of rates |
|
|
119 | (40) |
|
6.1 Predictions and contrasts |
|
|
119 | (1) |
|
6.2 Prediction of a single rate |
|
|
119 | (2) |
|
6.3 Categorical variables |
|
|
121 | (3) |
|
6.4 Modelling the effect of quantitative variables |
|
|
124 | (10) |
|
6.5 Two quantitative predictors |
|
|
134 | (11) |
|
6.6 Quantitative interactions |
|
|
145 | (14) |
|
7 Case-control and case-cohort studies |
|
|
159 | (22) |
|
7.1 Follow-up and case-control studies |
|
|
160 | (3) |
|
7.2 Statistical model for the odds ratio |
|
|
163 | (3) |
|
7.3 Odds ratio and rate ratio |
|
|
166 | (1) |
|
7.4 Confounding and stratified sampling |
|
|
166 | (4) |
|
7.5 Individually matched studies |
|
|
170 | (4) |
|
7.6 Nested case-control studies |
|
|
174 | (3) |
|
|
177 | (4) |
|
|
181 | (38) |
|
|
181 | (1) |
|
8.2 Life table estimator of survival function |
|
|
181 | (3) |
|
8.3 Kaplan-Meier estimator of survival |
|
|
184 | (4) |
|
|
188 | (5) |
|
|
193 | (3) |
|
8.6 Relation between Cox and Poisson models |
|
|
196 | (10) |
|
8.7 Time-dependent covariates |
|
|
206 | (4) |
|
|
210 | (4) |
|
8.9 Modelling cause specific rates |
|
|
214 | (3) |
|
8.10 The Fine-Gray approach to competing risks |
|
|
217 | (1) |
|
8.11 Time-dependent variables and competing risks |
|
|
217 | (2) |
|
9 Do not group quantitative variables |
|
|
219 | (4) |
|
9.1 Problems Caused by Categorizing Continuous Variables |
|
|
219 | (4) |
References |
|
223 | (2) |
Index |
|
225 | |