Mixed models in R using the lme4 package Part 5: Generalized linear mixed models
Douglas Bates
Department of Statistics University of Wisconsin - Madison <Bates@Wisc.edu>
Madison January 11, 2011
Douglas Bates (Stat. Dept.) GLMM
- Jan. 11, 2011
1 / 39
Mixed models in R using the lme4 package Part 5: Generalized linear - - PowerPoint PPT Presentation
Mixed models in R using the lme4 package Part 5: Generalized linear mixed models Douglas Bates Department of Statistics University of Wisconsin - Madison <Bates@Wisc.edu> Madison January 11, 2011 Douglas Bates (Stat. Dept.) GLMM Jan.
Douglas Bates (Stat. Dept.) GLMM
1 / 39
Douglas Bates (Stat. Dept.) GLMM
2 / 39
Douglas Bates (Stat. Dept.) GLMM
2 / 39
Douglas Bates (Stat. Dept.) GLMM
2 / 39
Douglas Bates (Stat. Dept.) GLMM
2 / 39
Douglas Bates (Stat. Dept.) GLMM
2 / 39
Douglas Bates (Stat. Dept.) GLMM
2 / 39
Douglas Bates (Stat. Dept.) GLMM
3 / 39
Douglas Bates (Stat. Dept.) GLMM
4 / 39
◮ The conditional distribution, Y|U = u, depends on u only through the
◮ Elements of Y are conditionally independent. That is, the distribution,
◮ These univariate, conditional distributions all have the same form.
Douglas Bates (Stat. Dept.) GLMM
5 / 39
◮ The Bernoulli distribution for binary (0/1) data, which has probability
◮ Several independent binary responses can be represented as a binomial
◮ The Poisson distribution for count (0, 1, . . . ) data, which has
Douglas Bates (Stat. Dept.) GLMM
6 / 39
Douglas Bates (Stat. Dept.) GLMM
7 / 39
Douglas Bates (Stat. Dept.) GLMM
8 / 39
Douglas Bates (Stat. Dept.) GLMM
9 / 39
µ η = log( µ 1 − µ)
−5 5 0.0 0.2 0.4 0.6 0.8 1.0
Douglas Bates (Stat. Dept.) GLMM
10 / 39
η µ = 1 1 + exp(−η)
0.0 0.2 0.4 0.6 0.8 1.0 −5 5
Douglas Bates (Stat. Dept.) GLMM
11 / 39
Douglas Bates (Stat. Dept.) GLMM
12 / 39
Douglas Bates (Stat. Dept.) GLMM
13 / 39
Douglas Bates (Stat. Dept.) GLMM
14 / 39
Douglas Bates (Stat. Dept.) GLMM
15 / 39
Douglas Bates (Stat. Dept.) GLMM
16 / 39
Douglas Bates (Stat. Dept.) GLMM
17 / 39
Douglas Bates (Stat. Dept.) GLMM
18 / 39
Douglas Bates (Stat. Dept.) GLMM
19 / 39
Centered age Proportion
0.0 0.2 0.4 0.6 0.8 1.0 −10 10 20
N
−10 10 20
Y 1 2 3+ Douglas Bates (Stat. Dept.) GLMM
20 / 39
Douglas Bates (Stat. Dept.) GLMM
21 / 39
Douglas Bates (Stat. Dept.) GLMM
22 / 39
Douglas Bates (Stat. Dept.) GLMM
23 / 39
Douglas Bates (Stat. Dept.) GLMM
24 / 39
Douglas Bates (Stat. Dept.) GLMM
25 / 39
Centered age Proportion
0.0 0.2 0.4 0.6 0.8 1.0 −10 10 20
N
−10 10 20
Y N Y Douglas Bates (Stat. Dept.) GLMM
26 / 39
Douglas Bates (Stat. Dept.) GLMM
27 / 39
Standard normal quantiles
−2 −1 1 2 −1.5 −1.0 −0.5 0.0 0.5 1.0
GLMM
28 / 39
Douglas Bates (Stat. Dept.) GLMM
29 / 39
Douglas Bates (Stat. Dept.) GLMM
30 / 39
Douglas Bates (Stat. Dept.) GLMM
31 / 39
Standard normal quantiles
−2 −1 1 2 −2 −1 1 2
−2 −1 1
Douglas Bates (Stat. Dept.) GLMM
32 / 39
urbanY (Intercept)
−1.0 −0.5 0.0 0.5 1.0 −1.0 −0.5 0.0 0.5 1.0
GLMM
33 / 39
Douglas Bates (Stat. Dept.) GLMM
34 / 39
Douglas Bates (Stat. Dept.) GLMM
35 / 39
Douglas Bates (Stat. Dept.) GLMM
36 / 39
Douglas Bates (Stat. Dept.) GLMM
37 / 39
Douglas Bates (Stat. Dept.) GLMM
38 / 39
Douglas Bates (Stat. Dept.) GLMM
39 / 39