SlideShare una empresa de Scribd logo
1 de 40
Descargar para leer sin conexión
Denitions Estimation Inference Challenges  open questions References 
Generalized linear mixed models 
Ben Bolker 
McMaster University, Mathematics  Statistics and Biology 
26 September 2014
Denitions Estimation Inference Challenges  open questions References 
Acknowledgments 
lme4: Doug Bates, Martin 
Mächler, Steve Walker 
Data: Josh Banta, Adrian Stier, 
Sea McKeon, David Julian, 
Jada-Simone White 
NSERC (Discovery) 
SHARCnet
Denitions Estimation Inference Challenges  open questions References 
Outline 
1 Examples and denitions 
2 Estimation 
Overview 
Methods 
3 Inference 
4 Challenges  open questions
Denitions Estimation Inference Challenges  open questions References 
Outline 
1 Examples and denitions 
2 Estimation 
Overview 
Methods 
3 Inference 
4 Challenges  open questions
Denitions Estimation Inference Challenges  open questions References 
(Generalized) linear mixed models 
(G)LMMs: a statistical modeling framework incorporating: 
combinations of categorical and continuous predictors, 
and interactions 
(some) non-Normal responses 
(e.g. binomial, Poisson, and extensions) 
(some) nonlinearity 
(e.g. logistic, exponential, hyperbolic) 
non-independent (grouped) data
Denitions Estimation Inference Challenges  open questions References 
(Generalized) linear mixed models 
(G)LMMs: a statistical modeling framework incorporating: 
combinations of categorical and continuous predictors, 
and interactions 
(some) non-Normal responses 
(e.g. binomial, Poisson, and extensions) 
(some) nonlinearity 
(e.g. logistic, exponential, hyperbolic) 
non-independent (grouped) data
Denitions Estimation Inference Challenges  open questions References 
(Generalized) linear mixed models 
(G)LMMs: a statistical modeling framework incorporating: 
combinations of categorical and continuous predictors, 
and interactions 
(some) non-Normal responses 
(e.g. binomial, Poisson, and extensions) 
(some) nonlinearity 
(e.g. logistic, exponential, hyperbolic) 
non-independent (grouped) data
Denitions Estimation Inference Challenges  open questions References 
} correlation 
nonlinearity random 
nonlinear 
least−squares 
linear regression 
ANOVA 
analysis of covariance 
multiple linear regression 
(non−normal errors) 
(nonlinearity) 
repeated−measures 
models; time series (ARIMA) 
} generalized 
(non−normal errors) 
linear models 
random smooth 
nonlinearity 
scaled 
variance 
effects 
nonlinearity 
nonlinear 
time series 
models 
thresholds; 
mixtures; 
compound distributions; 
etc. etc. etc. etc. 
effects 
correlation 
(nonlinearity) 
general 
linear models 
logistic regression 
binomial regression 
log−linear models 
GLMM 
mixed models 
generalized 
additive 
models 
quasilikelihood negative 
binomial models
Denitions Estimation Inference Challenges  open questions References 
Coral protection from seastars (Culcita) 
by symbionts (McKeon et al., 2012) 
Number of predation events 
2 
2 
1 
2 
2 
1 
none shrimp crabs both 
Symbionts 
10 
8 
Number of blocks 0 
6 
4 
2 
1 
0 
0 
0
Denitions Estimation Inference Challenges  open questions References 
Environmental stress: Glycera cell survival 
(D. Julian unpubl.) 
Anoxia 
Anoxia 
Anoxia 
Copper 
Normoxia 
Normoxia 
Osm=12.8 
Osm=22.4 
133.3 
66.6 
33.3 
0 
0 0.03 0.1 0.32 
H2S Normoxia 
Osm=32 
0 0.03 0.1 0.32 
Anoxia 
Normoxia 
Osm=41.6 
Anoxia 
Normoxia 
Osm=51.2 
0 0.03 0.1 0.32 
Osm=12.8 
0 0.03 0.1 0.32 
Osm=22.4 
Osm=32 
0 0.03 0.1 0.32 
Osm=41.6 
133.3 
66.6 
33.3 
0 
Osm=51.2 
1.0 
0.8 
0.6 
0.4 
0.2 
0.0
Denitions Estimation Inference Challenges  open questions References 
Arabidopsis response to fertilization  herbivory 
(Banta et al., 2010) 
Log(1+fruit set) 
5 
4 
3 
2 
1 
0 
nutrient : 1 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
ll 
l 
ll 
l l 
l l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l l 
l 
l 
l l 
l 
l 
l 
l 
ll 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
ll 
l 
l 
l 
l 
l 
l ll ll 
ll 
l 
ll 
lll 
ll 
l l 
l 
ll 
ll 
l 
l 
lll 
l 
l 
l 
l 
l 
l 
l 
l 
l 
ll ll 
unclipped clipped 
nutrient : 8 
l 
l 
l 
l 
l 
l 
l l 
l l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l l 
l 
l l 
l 
l 
l 
l 
l 
l l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
ll 
l 
l 
l 
l 
l 
l 
l 
l 
l l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l l 
l 
l 
l 
l l 
l ll 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
ll 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
ll 
l 
l 
l 
l 
l 
l 
ll 
l 
l 
ll 
l ll 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
ll l 
l 
ll l 
ll l 
l ll lll 
l lll 
ll 
l 
l 
l 
l 
ll 
llll l l 
unclipped clipped
Denitions Estimation Inference Challenges  open questions References 
Coral demography 
(J.-S. White unpubl.) 
Before Experimental 
l 
l 
l 
l 
l 
l l l 
l l 
l 
l 
l l 
l 
l l 
l 
l l 
lll l ll l 
l 
l 
l 
l 
l 
l 
l l l 
l l 
l l 
ll 
l 
l 
l 
l 
l ll 
l l ll l 
l l 
l 
ll l 
l ll l 
l 
l 
l l 
l 
llll l l 
l 
l l l 
l 
l l l 
l l 
l l 
l 
l 
l 
l 
l lll 
ll 
l l 
l l 
l 
l 
l 
l l 
l 
l ll 
l 
l 
l 
l 
l 
l l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l l 
l 
l 
l 
l 
l 
lll 
l 
l l l l 
l 
l 
l 
l l 
l 
l l l 
ll 
l 
l 
ll 
l l 
l 
l l 
l lll 
l 
l l ll 
l 
l 
l l 
l 
l l 
l 
l 
1.00 
0.75 
0.50 
0.25 
0.00 l 
0 10 20 30 40 50 0 10 20 30 40 50 
Previous size (cm) 
Mortality probability 
Treatment 
l 
l 
Present 
Removed
Denitions Estimation Inference Challenges  open questions References 
Technical denition 
Yi |{z} 
response 
 
conditional 
disztr}ib|u{tion 
Distr (g1(i ) | {z } 
inverse 
link 
function 
; |{z} 
scale 
) 
parameter
Denitions Estimation Inference Challenges  open questions References 
Technical denition 
Yi |{z} 
response 
 
conditional 
disztr}ib|u{tion 
Distr (g1(i ) | {z } 
inverse 
link 
function 
; |{z} 
scale 
) 
parameter 
|{z} 
linear 
predictor 
= |X{z
} 
xed 
eects 
+ Zb |{z} 
random 
eects
Denitions Estimation Inference Challenges  open questions References 
Technical denition 
Yi |{z} 
response 
 
conditional 
disztr}ib|u{tion 
Distr (g1(i ) | {z } 
inverse 
link 
function 
; |{z} 
scale 
) 
parameter 
|{z} 
linear 
predictor 
= |X{z
} 
xed 
eects 
+ Zb |{z} 
random 
eects 
b |{z} 
conditional 
modes 
 MVN(0; () | {z } 
) 
variance- 
covariance 
matrix
Denitions Estimation Inference Challenges  open questions References 
What are random eects? 
A method for . . . 
accounting for among-individual, within-block correlation 
compromising between complete pooling (no among-block 
variance) 
and xed eects (innite among-block variance) 
handling levels selected at random from a larger population 
sharing information among levels (shrinkage estimation) 
estimating variability among levels 
allowing predictions for unmeasured levels
Denitions Estimation Inference Challenges  open questions References 
What are random eects? 
A method for . . . 
accounting for among-individual, within-block correlation 
compromising between complete pooling (no among-block 
variance) 
and xed eects (innite among-block variance) 
handling levels selected at random from a larger population 
sharing information among levels (shrinkage estimation) 
estimating variability among levels 
allowing predictions for unmeasured levels
Denitions Estimation Inference Challenges  open questions References 
What are random eects? 
A method for . . . 
accounting for among-individual, within-block correlation 
compromising between complete pooling (no among-block 
variance) 
and xed eects (innite among-block variance) 
handling levels selected at random from a larger population 
sharing information among levels (shrinkage estimation) 
estimating variability among levels 
allowing predictions for unmeasured levels
Denitions Estimation Inference Challenges  open questions References 
What are random eects? 
A method for . . . 
accounting for among-individual, within-block correlation 
compromising between complete pooling (no among-block 
variance) 
and xed eects (innite among-block variance) 
handling levels selected at random from a larger population 
sharing information among levels (shrinkage estimation) 
estimating variability among levels 
allowing predictions for unmeasured levels
Denitions Estimation Inference Challenges  open questions References 
What are random eects? 
A method for . . . 
accounting for among-individual, within-block correlation 
compromising between complete pooling (no among-block 
variance) 
and xed eects (innite among-block variance) 
handling levels selected at random from a larger population 
sharing information among levels (shrinkage estimation) 
estimating variability among levels 
allowing predictions for unmeasured levels
Denitions Estimation Inference Challenges  open questions References 
What are random eects? 
A method for . . . 
accounting for among-individual, within-block correlation 
compromising between complete pooling (no among-block 
variance) 
and xed eects (innite among-block variance) 
handling levels selected at random from a larger population 
sharing information among levels (shrinkage estimation) 
estimating variability among levels 
allowing predictions for unmeasured levels
Denitions Estimation Inference Challenges  open questions References 
Outline 
1 Examples and denitions 
2 Estimation 
Overview 
Methods 
3 Inference 
4 Challenges  open questions
Denitions Estimation Inference Challenges  open questions References 
Maximum likelihood estimation 
Best t is a compromise between two components 
(consistency of data with xed eects and conditional modes; 
consistency of random eect with RE distribution) 
Goodness-of-t integrates over conditional modes 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
ll 
l 
l 
2 
1 
0 
−1 
−2 
1 2 3 4 5 
f 
y
Denitions Estimation Inference Challenges  open questions References 
Shrinkage: Arabidopsis conditional modes 
20 
10 
Mean fruit set 0 5 10 15 20 25 
l l 
l 
l 
l 
l 
l 
l 
l l l 
l 
l l l l 
l l l l 
l l l 
l 
Genotype 
1 
0.1 
0 
l group mean 
shrinkage est.
Denitions Estimation Inference Challenges  open questions References 
Estimation methods 
deterministic : various approximate integrals (Breslow, 2004) 
Penalized quasi-likelihood, Laplace, 
Gauss-Hermite quadrature, . . . 
exibility and speed vs. accuracy 
. . . 
stochastic (Monte Carlo): frequentist and Bayesian (Booth and 
Hobert, 1999; Ponciano et al., 2009; Sung, 2007) 
usually slower but exible and accurate
Denitions Estimation Inference Challenges  open questions References 
Estimation: Culcita (McKeon et al., 2012) 
Log−odds of predation 
−6 −4 −2 0 2 
Added symbiont 
Crab vs. Shrimp 
Symbiont 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
l 
GLM (fixed) 
GLM (pooled) 
PQL 
Laplace 
AGQ
Denitions Estimation Inference Challenges  open questions References 
Outline 
1 Examples and denitions 
2 Estimation 
Overview 
Methods 
3 Inference 
4 Challenges  open questions
Denitions Estimation Inference Challenges  open questions References 
Wald tests 
typical results of summary 
exact for ANOVA, regression: 
approximation for GLM(M)s 
fast 
approximation is sometimes 
awful (Hauck-Donner eect) parameter 
log−likelihood
Denitions Estimation Inference Challenges  open questions References 
2D proles for Culcita data 
0 
−2 
−4 
−6 
−8 
−2 −6 −4 −2 
−4 
−6 
−8 
Scatter Plot Matrix 
2 4 6 8 101214 
.sig01 
0 
−1 
−2 
−3 
15 
10 
(Intercept) 
5 
0 
10 15 
0 1 2 3 
tttcrabs 
−10 
−4 −2 0 
0 1 2 3 
tttshrimp 
−10 
0 1 2 3 
tttboth 
−2 
−4 
−6 
−8 
−10 
−12 
0 1 2 3
Denitions Estimation Inference Challenges  open questions References 
Likelihood ratio tests 
better than Wald, but still have to two problems: 
denominator degrees of freedom (when estimating scale) 
for GLMMs, distributions are approximate anyway (Bartlett 
corrections) 
Kenward-Roger correction? (Stroup, 2014) 
Prole condence intervals: expensive/fragile
Denitions Estimation Inference Challenges  open questions References 
Parametric bootstrapping 
t null model to data 
simulate data from null model 
t null and working model, compute likelihood dierence 
repeat to estimate null distribution 
should be OK but ??? not well tested 
(assumes estimated parameters are suciently good)
Denitions Estimation Inference Challenges  open questions References 
Parametric bootstrap results 
H2S 
Osm Cu 
True p value 
Inferred p value 
0.08 
0.06 
0.04 
0.02 
0.02 0.06 
0.02 0.06 
0.08 
0.06 
0.04 
0.02 
Anoxia 
normal 
t(14) 
t(7)
Denitions Estimation Inference Challenges  open questions References 
Bayesian inference 
If we have a good sample from the posterior distribution 
(Markov chains have converged etc. etc.) we get most of the 
inferences we want for free by summarizing the marginal 
posteriors 
post hoc Bayesian can work, but mode at zero causes problems
Denitions Estimation Inference Challenges  open questions References 
Culcita condence intervals 
l l l 
l l l 
l l l 
l l l 
l l l 
tttshrimp 
tttcrabs 
tttboth 
(Intercept) 
block 
−15 −10 −5 0 5 10 15 
Effect (log−odds of predation) 
CI 
l 
l 
l 
l 
Wald 
profile 
boot 
MCMC 
fun 
l glmer 
glmmADMB 
MCMCglmm
Denitions Estimation Inference Challenges  open questions References 
Outline 
1 Examples and denitions 
2 Estimation 
Overview 
Methods 
3 Inference 
4 Challenges  open questions
Denitions Estimation Inference Challenges  open questions References 
On beyond R 
Julia: MixedModels package 
SAS: PROC MIXED, NLMIXED 
AS-REML 
Stata (GLLAMM, xtmelogit) 
AD Model Builder 
HLM, MLWiN
Denitions Estimation Inference Challenges  open questions References 
Challenges 
Small/medium data: inference, singular ts (blme, MCMCglmm) 
Big data: speed! 
Worst case: large n, small N (e.g. telemetry/genomics) 
Model diagnosis 
Condence intervals accounting for uncertainty in variances 
See also: http://rpubs.com/bbolker/glmmchapter, https: 
//groups.nceas.ucsb.edu/non-linear-modeling/projects
Denitions Estimation Inference Challenges  open questions References 
Spatial and temporal correlations 
Sometimes blocking takes care of non-independence ... 
but sometimes there is temporal or spatial correlation within 
blocks 
. . . also phylogenetic . . . (Ives and Zhu, 2006) 
G-side vs. R-side eects 
tricky to implement for GLMMs, 
but new possibilities on the horizon (Rousset and Ferdy, 2014; 
Rue et al., 2009)

Más contenido relacionado

Destacado

model complexity and model choice for animal movement models
model complexity and model choice for animal movement modelsmodel complexity and model choice for animal movement models
model complexity and model choice for animal movement modelsBen Bolker
 
Bolker esa2014
Bolker esa2014Bolker esa2014
Bolker esa2014Ben Bolker
 
virulence evolution (IGERT symposium)
virulence evolution (IGERT symposium)virulence evolution (IGERT symposium)
virulence evolution (IGERT symposium)Ben Bolker
 
evolution of virulence: devil in the details
evolution of virulence: devil in the detailsevolution of virulence: devil in the details
evolution of virulence: devil in the detailsBen Bolker
 
Davis eco-evo virulence
Davis eco-evo virulenceDavis eco-evo virulence
Davis eco-evo virulenceBen Bolker
 
intro to knitr with RStudio
intro to knitr with RStudiointro to knitr with RStudio
intro to knitr with RStudioBen Bolker
 
model complexity and model choice for animal movement models
model complexity and model choice for animal movement modelsmodel complexity and model choice for animal movement models
model complexity and model choice for animal movement modelsBen Bolker
 

Destacado (9)

model complexity and model choice for animal movement models
model complexity and model choice for animal movement modelsmodel complexity and model choice for animal movement models
model complexity and model choice for animal movement models
 
Google lme4
Google lme4Google lme4
Google lme4
 
Bolker esa2014
Bolker esa2014Bolker esa2014
Bolker esa2014
 
virulence evolution (IGERT symposium)
virulence evolution (IGERT symposium)virulence evolution (IGERT symposium)
virulence evolution (IGERT symposium)
 
evolution of virulence: devil in the details
evolution of virulence: devil in the detailsevolution of virulence: devil in the details
evolution of virulence: devil in the details
 
Threads 2013
Threads 2013Threads 2013
Threads 2013
 
Davis eco-evo virulence
Davis eco-evo virulenceDavis eco-evo virulence
Davis eco-evo virulence
 
intro to knitr with RStudio
intro to knitr with RStudiointro to knitr with RStudio
intro to knitr with RStudio
 
model complexity and model choice for animal movement models
model complexity and model choice for animal movement modelsmodel complexity and model choice for animal movement models
model complexity and model choice for animal movement models
 

Similar a Waterloo GLMM talk

SLR Assumptions:Model Check Using SPSS
SLR Assumptions:Model Check Using SPSSSLR Assumptions:Model Check Using SPSS
SLR Assumptions:Model Check Using SPSSNermin Osman
 
2010 smg training_cardiff_day2_session2_dias
2010 smg training_cardiff_day2_session2_dias2010 smg training_cardiff_day2_session2_dias
2010 smg training_cardiff_day2_session2_diasrgveroniki
 
Complex sampling in latent variable models
Complex sampling in latent variable modelsComplex sampling in latent variable models
Complex sampling in latent variable modelsDaniel Oberski
 
Change Detection in Multivariate Data: Likelihood and Detectability Loss
Change Detection in Multivariate Data: Likelihood and Detectability LossChange Detection in Multivariate Data: Likelihood and Detectability Loss
Change Detection in Multivariate Data: Likelihood and Detectability LossGiacomo Boracchi
 
Anova lecture
Anova lectureAnova lecture
Anova lecturedoublem44
 
A measure to evaluate latent variable model fit by sensitivity analysis
A measure to evaluate latent variable model fit by sensitivity analysisA measure to evaluate latent variable model fit by sensitivity analysis
A measure to evaluate latent variable model fit by sensitivity analysisDaniel Oberski
 
35881 DiscussionNumber of Pages 1 (Double Spaced)Number o.docx
35881 DiscussionNumber of Pages 1 (Double Spaced)Number o.docx35881 DiscussionNumber of Pages 1 (Double Spaced)Number o.docx
35881 DiscussionNumber of Pages 1 (Double Spaced)Number o.docxrhetttrevannion
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic AlgorithmSHIMI S L
 
08 Inference for Networks – DYAD Model Overview (2017)
08 Inference for Networks – DYAD Model Overview (2017)08 Inference for Networks – DYAD Model Overview (2017)
08 Inference for Networks – DYAD Model Overview (2017)Duke Network Analysis Center
 
7. logistics regression using spss
7. logistics regression using spss7. logistics regression using spss
7. logistics regression using spssDr Nisha Arora
 
35880 Topic Discussion7Number of Pages 1 (Double Spaced).docx
35880 Topic Discussion7Number of Pages 1 (Double Spaced).docx35880 Topic Discussion7Number of Pages 1 (Double Spaced).docx
35880 Topic Discussion7Number of Pages 1 (Double Spaced).docxdomenicacullison
 
Sparse inverse covariance estimation using skggm
Sparse inverse covariance estimation using skggmSparse inverse covariance estimation using skggm
Sparse inverse covariance estimation using skggmManjari Narayan
 
linear model multiple predictors.pdf
linear model multiple predictors.pdflinear model multiple predictors.pdf
linear model multiple predictors.pdfssuser7d5314
 
Back to the basics-Part2: Data exploration: representing and testing data pro...
Back to the basics-Part2: Data exploration: representing and testing data pro...Back to the basics-Part2: Data exploration: representing and testing data pro...
Back to the basics-Part2: Data exploration: representing and testing data pro...Giannis Tsakonas
 
Rsqrd AI - ML Interpretability: Beyond Feature Importance
Rsqrd AI - ML Interpretability: Beyond Feature ImportanceRsqrd AI - ML Interpretability: Beyond Feature Importance
Rsqrd AI - ML Interpretability: Beyond Feature ImportanceAlessya Visnjic
 
Statistics for CEGEP Biology
Statistics for CEGEP BiologyStatistics for CEGEP Biology
Statistics for CEGEP BiologyCorey Chivers
 

Similar a Waterloo GLMM talk (20)

SLR Assumptions:Model Check Using SPSS
SLR Assumptions:Model Check Using SPSSSLR Assumptions:Model Check Using SPSS
SLR Assumptions:Model Check Using SPSS
 
2010 smg training_cardiff_day2_session2_dias
2010 smg training_cardiff_day2_session2_dias2010 smg training_cardiff_day2_session2_dias
2010 smg training_cardiff_day2_session2_dias
 
Complex sampling in latent variable models
Complex sampling in latent variable modelsComplex sampling in latent variable models
Complex sampling in latent variable models
 
Change Detection in Multivariate Data: Likelihood and Detectability Loss
Change Detection in Multivariate Data: Likelihood and Detectability LossChange Detection in Multivariate Data: Likelihood and Detectability Loss
Change Detection in Multivariate Data: Likelihood and Detectability Loss
 
What is qca
What is qcaWhat is qca
What is qca
 
Anova lecture
Anova lectureAnova lecture
Anova lecture
 
A measure to evaluate latent variable model fit by sensitivity analysis
A measure to evaluate latent variable model fit by sensitivity analysisA measure to evaluate latent variable model fit by sensitivity analysis
A measure to evaluate latent variable model fit by sensitivity analysis
 
35881 DiscussionNumber of Pages 1 (Double Spaced)Number o.docx
35881 DiscussionNumber of Pages 1 (Double Spaced)Number o.docx35881 DiscussionNumber of Pages 1 (Double Spaced)Number o.docx
35881 DiscussionNumber of Pages 1 (Double Spaced)Number o.docx
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
Corrleation and regression
Corrleation and regressionCorrleation and regression
Corrleation and regression
 
08 Inference for Networks – DYAD Model Overview (2017)
08 Inference for Networks – DYAD Model Overview (2017)08 Inference for Networks – DYAD Model Overview (2017)
08 Inference for Networks – DYAD Model Overview (2017)
 
7. logistics regression using spss
7. logistics regression using spss7. logistics regression using spss
7. logistics regression using spss
 
35880 Topic Discussion7Number of Pages 1 (Double Spaced).docx
35880 Topic Discussion7Number of Pages 1 (Double Spaced).docx35880 Topic Discussion7Number of Pages 1 (Double Spaced).docx
35880 Topic Discussion7Number of Pages 1 (Double Spaced).docx
 
Sparse inverse covariance estimation using skggm
Sparse inverse covariance estimation using skggmSparse inverse covariance estimation using skggm
Sparse inverse covariance estimation using skggm
 
ECONOMETRICS I ASA
ECONOMETRICS I ASAECONOMETRICS I ASA
ECONOMETRICS I ASA
 
Chapter4_Multi_Reg_Estim.pdf.pdf
Chapter4_Multi_Reg_Estim.pdf.pdfChapter4_Multi_Reg_Estim.pdf.pdf
Chapter4_Multi_Reg_Estim.pdf.pdf
 
linear model multiple predictors.pdf
linear model multiple predictors.pdflinear model multiple predictors.pdf
linear model multiple predictors.pdf
 
Back to the basics-Part2: Data exploration: representing and testing data pro...
Back to the basics-Part2: Data exploration: representing and testing data pro...Back to the basics-Part2: Data exploration: representing and testing data pro...
Back to the basics-Part2: Data exploration: representing and testing data pro...
 
Rsqrd AI - ML Interpretability: Beyond Feature Importance
Rsqrd AI - ML Interpretability: Beyond Feature ImportanceRsqrd AI - ML Interpretability: Beyond Feature Importance
Rsqrd AI - ML Interpretability: Beyond Feature Importance
 
Statistics for CEGEP Biology
Statistics for CEGEP BiologyStatistics for CEGEP Biology
Statistics for CEGEP Biology
 

Más de Ben Bolker

Ecological synthesis across scales: West Nile virus in individuals and commun...
Ecological synthesis across scales: West Nile virus in individuals and commun...Ecological synthesis across scales: West Nile virus in individuals and commun...
Ecological synthesis across scales: West Nile virus in individuals and commun...Ben Bolker
 
Fundamental principles (?) of biological data
Fundamental principles (?) of biological dataFundamental principles (?) of biological data
Fundamental principles (?) of biological dataBen Bolker
 
MBRS detectability talk
MBRS detectability talkMBRS detectability talk
MBRS detectability talkBen Bolker
 
Disease-induced extinction
Disease-induced extinctionDisease-induced extinction
Disease-induced extinctionBen Bolker
 
Trondheim glmm
Trondheim glmmTrondheim glmm
Trondheim glmmBen Bolker
 
MBI intro to spatial models
MBI intro to spatial modelsMBI intro to spatial models
MBI intro to spatial modelsBen Bolker
 
Harvard Forest GLMM talk
Harvard Forest GLMM talkHarvard Forest GLMM talk
Harvard Forest GLMM talkBen Bolker
 
ESA 2011 pines/spatial talk
ESA 2011 pines/spatial talkESA 2011 pines/spatial talk
ESA 2011 pines/spatial talkBen Bolker
 
Open source GLMM tools: Concordia
Open source GLMM tools: ConcordiaOpen source GLMM tools: Concordia
Open source GLMM tools: ConcordiaBen Bolker
 
open-source GLMM tools
open-source GLMM toolsopen-source GLMM tools
open-source GLMM toolsBen Bolker
 
unmarked individuals: Guelph
unmarked individuals: Guelphunmarked individuals: Guelph
unmarked individuals: GuelphBen Bolker
 
GLMs and extensions in R
GLMs and extensions in RGLMs and extensions in R
GLMs and extensions in RBen Bolker
 

Más de Ben Bolker (13)

Ecological synthesis across scales: West Nile virus in individuals and commun...
Ecological synthesis across scales: West Nile virus in individuals and commun...Ecological synthesis across scales: West Nile virus in individuals and commun...
Ecological synthesis across scales: West Nile virus in individuals and commun...
 
Fundamental principles (?) of biological data
Fundamental principles (?) of biological dataFundamental principles (?) of biological data
Fundamental principles (?) of biological data
 
MBRS detectability talk
MBRS detectability talkMBRS detectability talk
MBRS detectability talk
 
Disease-induced extinction
Disease-induced extinctionDisease-induced extinction
Disease-induced extinction
 
Zif bolker_w2
Zif bolker_w2Zif bolker_w2
Zif bolker_w2
 
Trondheim glmm
Trondheim glmmTrondheim glmm
Trondheim glmm
 
MBI intro to spatial models
MBI intro to spatial modelsMBI intro to spatial models
MBI intro to spatial models
 
Harvard Forest GLMM talk
Harvard Forest GLMM talkHarvard Forest GLMM talk
Harvard Forest GLMM talk
 
ESA 2011 pines/spatial talk
ESA 2011 pines/spatial talkESA 2011 pines/spatial talk
ESA 2011 pines/spatial talk
 
Open source GLMM tools: Concordia
Open source GLMM tools: ConcordiaOpen source GLMM tools: Concordia
Open source GLMM tools: Concordia
 
open-source GLMM tools
open-source GLMM toolsopen-source GLMM tools
open-source GLMM tools
 
unmarked individuals: Guelph
unmarked individuals: Guelphunmarked individuals: Guelph
unmarked individuals: Guelph
 
GLMs and extensions in R
GLMs and extensions in RGLMs and extensions in R
GLMs and extensions in R
 

Último

Introduction of Human Body & Structure of cell.pptx
Introduction of Human Body & Structure of cell.pptxIntroduction of Human Body & Structure of cell.pptx
Introduction of Human Body & Structure of cell.pptxMedical College
 
Immunoblott technique for protein detection.ppt
Immunoblott technique for protein detection.pptImmunoblott technique for protein detection.ppt
Immunoblott technique for protein detection.pptAmirRaziq1
 
Pests of Sunflower_Binomics_Identification_Dr.UPR
Pests of Sunflower_Binomics_Identification_Dr.UPRPests of Sunflower_Binomics_Identification_Dr.UPR
Pests of Sunflower_Binomics_Identification_Dr.UPRPirithiRaju
 
LESSON PLAN IN SCIENCE GRADE 4 WEEK 1 DAY 2
LESSON PLAN IN SCIENCE GRADE 4 WEEK 1 DAY 2LESSON PLAN IN SCIENCE GRADE 4 WEEK 1 DAY 2
LESSON PLAN IN SCIENCE GRADE 4 WEEK 1 DAY 2AuEnriquezLontok
 
Observation of Gravitational Waves from the Coalescence of a 2.5–4.5 M⊙ Compa...
Observation of Gravitational Waves from the Coalescence of a 2.5–4.5 M⊙ Compa...Observation of Gravitational Waves from the Coalescence of a 2.5–4.5 M⊙ Compa...
Observation of Gravitational Waves from the Coalescence of a 2.5–4.5 M⊙ Compa...Sérgio Sacani
 
6.2 Pests of Sesame_Identification_Binomics_Dr.UPR
6.2 Pests of Sesame_Identification_Binomics_Dr.UPR6.2 Pests of Sesame_Identification_Binomics_Dr.UPR
6.2 Pests of Sesame_Identification_Binomics_Dr.UPRPirithiRaju
 
CHROMATOGRAPHY PALLAVI RAWAT.pptx
CHROMATOGRAPHY  PALLAVI RAWAT.pptxCHROMATOGRAPHY  PALLAVI RAWAT.pptx
CHROMATOGRAPHY PALLAVI RAWAT.pptxpallavirawat456
 
Oxo-Acids of Halogens and their Salts.pptx
Oxo-Acids of Halogens and their Salts.pptxOxo-Acids of Halogens and their Salts.pptx
Oxo-Acids of Halogens and their Salts.pptxfarhanvvdk
 
Gas-ExchangeS-in-Plants-and-Animals.pptx
Gas-ExchangeS-in-Plants-and-Animals.pptxGas-ExchangeS-in-Plants-and-Animals.pptx
Gas-ExchangeS-in-Plants-and-Animals.pptxGiovaniTrinidad
 
whole genome sequencing new and its types including shortgun and clone by clone
whole genome sequencing new  and its types including shortgun and clone by clonewhole genome sequencing new  and its types including shortgun and clone by clone
whole genome sequencing new and its types including shortgun and clone by clonechaudhary charan shingh university
 
GENERAL PHYSICS 2 REFRACTION OF LIGHT SENIOR HIGH SCHOOL GENPHYS2.pptx
GENERAL PHYSICS 2 REFRACTION OF LIGHT SENIOR HIGH SCHOOL GENPHYS2.pptxGENERAL PHYSICS 2 REFRACTION OF LIGHT SENIOR HIGH SCHOOL GENPHYS2.pptx
GENERAL PHYSICS 2 REFRACTION OF LIGHT SENIOR HIGH SCHOOL GENPHYS2.pptxRitchAndruAgustin
 
Explainable AI for distinguishing future climate change scenarios
Explainable AI for distinguishing future climate change scenariosExplainable AI for distinguishing future climate change scenarios
Explainable AI for distinguishing future climate change scenariosZachary Labe
 
DOG BITE management in pediatrics # for Pediatric pgs# topic presentation # f...
DOG BITE management in pediatrics # for Pediatric pgs# topic presentation # f...DOG BITE management in pediatrics # for Pediatric pgs# topic presentation # f...
DOG BITE management in pediatrics # for Pediatric pgs# topic presentation # f...HafsaHussainp
 
GenAI talk for Young at Wageningen University & Research (WUR) March 2024
GenAI talk for Young at Wageningen University & Research (WUR) March 2024GenAI talk for Young at Wageningen University & Research (WUR) March 2024
GenAI talk for Young at Wageningen University & Research (WUR) March 2024Jene van der Heide
 
Abnormal LFTs rate of deco and NAFLD.pptx
Abnormal LFTs rate of deco and NAFLD.pptxAbnormal LFTs rate of deco and NAFLD.pptx
Abnormal LFTs rate of deco and NAFLD.pptxzeus70441
 
6.1 Pests of Groundnut_Binomics_Identification_Dr.UPR
6.1 Pests of Groundnut_Binomics_Identification_Dr.UPR6.1 Pests of Groundnut_Binomics_Identification_Dr.UPR
6.1 Pests of Groundnut_Binomics_Identification_Dr.UPRPirithiRaju
 
How we decide powerpoint presentation.pptx
How we decide powerpoint presentation.pptxHow we decide powerpoint presentation.pptx
How we decide powerpoint presentation.pptxJosielynTars
 
Observational constraints on mergers creating magnetism in massive stars
Observational constraints on mergers creating magnetism in massive starsObservational constraints on mergers creating magnetism in massive stars
Observational constraints on mergers creating magnetism in massive starsSérgio Sacani
 
Environmental Acoustics- Speech interference level, acoustics calibrator.pptx
Environmental Acoustics- Speech interference level, acoustics calibrator.pptxEnvironmental Acoustics- Speech interference level, acoustics calibrator.pptx
Environmental Acoustics- Speech interference level, acoustics calibrator.pptxpriyankatabhane
 
Charateristics of the Angara-A5 spacecraft launched from the Vostochny Cosmod...
Charateristics of the Angara-A5 spacecraft launched from the Vostochny Cosmod...Charateristics of the Angara-A5 spacecraft launched from the Vostochny Cosmod...
Charateristics of the Angara-A5 spacecraft launched from the Vostochny Cosmod...Christina Parmionova
 

Último (20)

Introduction of Human Body & Structure of cell.pptx
Introduction of Human Body & Structure of cell.pptxIntroduction of Human Body & Structure of cell.pptx
Introduction of Human Body & Structure of cell.pptx
 
Immunoblott technique for protein detection.ppt
Immunoblott technique for protein detection.pptImmunoblott technique for protein detection.ppt
Immunoblott technique for protein detection.ppt
 
Pests of Sunflower_Binomics_Identification_Dr.UPR
Pests of Sunflower_Binomics_Identification_Dr.UPRPests of Sunflower_Binomics_Identification_Dr.UPR
Pests of Sunflower_Binomics_Identification_Dr.UPR
 
LESSON PLAN IN SCIENCE GRADE 4 WEEK 1 DAY 2
LESSON PLAN IN SCIENCE GRADE 4 WEEK 1 DAY 2LESSON PLAN IN SCIENCE GRADE 4 WEEK 1 DAY 2
LESSON PLAN IN SCIENCE GRADE 4 WEEK 1 DAY 2
 
Observation of Gravitational Waves from the Coalescence of a 2.5–4.5 M⊙ Compa...
Observation of Gravitational Waves from the Coalescence of a 2.5–4.5 M⊙ Compa...Observation of Gravitational Waves from the Coalescence of a 2.5–4.5 M⊙ Compa...
Observation of Gravitational Waves from the Coalescence of a 2.5–4.5 M⊙ Compa...
 
6.2 Pests of Sesame_Identification_Binomics_Dr.UPR
6.2 Pests of Sesame_Identification_Binomics_Dr.UPR6.2 Pests of Sesame_Identification_Binomics_Dr.UPR
6.2 Pests of Sesame_Identification_Binomics_Dr.UPR
 
CHROMATOGRAPHY PALLAVI RAWAT.pptx
CHROMATOGRAPHY  PALLAVI RAWAT.pptxCHROMATOGRAPHY  PALLAVI RAWAT.pptx
CHROMATOGRAPHY PALLAVI RAWAT.pptx
 
Oxo-Acids of Halogens and their Salts.pptx
Oxo-Acids of Halogens and their Salts.pptxOxo-Acids of Halogens and their Salts.pptx
Oxo-Acids of Halogens and their Salts.pptx
 
Gas-ExchangeS-in-Plants-and-Animals.pptx
Gas-ExchangeS-in-Plants-and-Animals.pptxGas-ExchangeS-in-Plants-and-Animals.pptx
Gas-ExchangeS-in-Plants-and-Animals.pptx
 
whole genome sequencing new and its types including shortgun and clone by clone
whole genome sequencing new  and its types including shortgun and clone by clonewhole genome sequencing new  and its types including shortgun and clone by clone
whole genome sequencing new and its types including shortgun and clone by clone
 
GENERAL PHYSICS 2 REFRACTION OF LIGHT SENIOR HIGH SCHOOL GENPHYS2.pptx
GENERAL PHYSICS 2 REFRACTION OF LIGHT SENIOR HIGH SCHOOL GENPHYS2.pptxGENERAL PHYSICS 2 REFRACTION OF LIGHT SENIOR HIGH SCHOOL GENPHYS2.pptx
GENERAL PHYSICS 2 REFRACTION OF LIGHT SENIOR HIGH SCHOOL GENPHYS2.pptx
 
Explainable AI for distinguishing future climate change scenarios
Explainable AI for distinguishing future climate change scenariosExplainable AI for distinguishing future climate change scenarios
Explainable AI for distinguishing future climate change scenarios
 
DOG BITE management in pediatrics # for Pediatric pgs# topic presentation # f...
DOG BITE management in pediatrics # for Pediatric pgs# topic presentation # f...DOG BITE management in pediatrics # for Pediatric pgs# topic presentation # f...
DOG BITE management in pediatrics # for Pediatric pgs# topic presentation # f...
 
GenAI talk for Young at Wageningen University & Research (WUR) March 2024
GenAI talk for Young at Wageningen University & Research (WUR) March 2024GenAI talk for Young at Wageningen University & Research (WUR) March 2024
GenAI talk for Young at Wageningen University & Research (WUR) March 2024
 
Abnormal LFTs rate of deco and NAFLD.pptx
Abnormal LFTs rate of deco and NAFLD.pptxAbnormal LFTs rate of deco and NAFLD.pptx
Abnormal LFTs rate of deco and NAFLD.pptx
 
6.1 Pests of Groundnut_Binomics_Identification_Dr.UPR
6.1 Pests of Groundnut_Binomics_Identification_Dr.UPR6.1 Pests of Groundnut_Binomics_Identification_Dr.UPR
6.1 Pests of Groundnut_Binomics_Identification_Dr.UPR
 
How we decide powerpoint presentation.pptx
How we decide powerpoint presentation.pptxHow we decide powerpoint presentation.pptx
How we decide powerpoint presentation.pptx
 
Observational constraints on mergers creating magnetism in massive stars
Observational constraints on mergers creating magnetism in massive starsObservational constraints on mergers creating magnetism in massive stars
Observational constraints on mergers creating magnetism in massive stars
 
Environmental Acoustics- Speech interference level, acoustics calibrator.pptx
Environmental Acoustics- Speech interference level, acoustics calibrator.pptxEnvironmental Acoustics- Speech interference level, acoustics calibrator.pptx
Environmental Acoustics- Speech interference level, acoustics calibrator.pptx
 
Charateristics of the Angara-A5 spacecraft launched from the Vostochny Cosmod...
Charateristics of the Angara-A5 spacecraft launched from the Vostochny Cosmod...Charateristics of the Angara-A5 spacecraft launched from the Vostochny Cosmod...
Charateristics of the Angara-A5 spacecraft launched from the Vostochny Cosmod...
 

Waterloo GLMM talk

  • 1. Denitions Estimation Inference Challenges open questions References Generalized linear mixed models Ben Bolker McMaster University, Mathematics Statistics and Biology 26 September 2014
  • 2. Denitions Estimation Inference Challenges open questions References Acknowledgments lme4: Doug Bates, Martin Mächler, Steve Walker Data: Josh Banta, Adrian Stier, Sea McKeon, David Julian, Jada-Simone White NSERC (Discovery) SHARCnet
  • 3. Denitions Estimation Inference Challenges open questions References Outline 1 Examples and denitions 2 Estimation Overview Methods 3 Inference 4 Challenges open questions
  • 4. Denitions Estimation Inference Challenges open questions References Outline 1 Examples and denitions 2 Estimation Overview Methods 3 Inference 4 Challenges open questions
  • 5. Denitions Estimation Inference Challenges open questions References (Generalized) linear mixed models (G)LMMs: a statistical modeling framework incorporating: combinations of categorical and continuous predictors, and interactions (some) non-Normal responses (e.g. binomial, Poisson, and extensions) (some) nonlinearity (e.g. logistic, exponential, hyperbolic) non-independent (grouped) data
  • 6. Denitions Estimation Inference Challenges open questions References (Generalized) linear mixed models (G)LMMs: a statistical modeling framework incorporating: combinations of categorical and continuous predictors, and interactions (some) non-Normal responses (e.g. binomial, Poisson, and extensions) (some) nonlinearity (e.g. logistic, exponential, hyperbolic) non-independent (grouped) data
  • 7. Denitions Estimation Inference Challenges open questions References (Generalized) linear mixed models (G)LMMs: a statistical modeling framework incorporating: combinations of categorical and continuous predictors, and interactions (some) non-Normal responses (e.g. binomial, Poisson, and extensions) (some) nonlinearity (e.g. logistic, exponential, hyperbolic) non-independent (grouped) data
  • 8. Denitions Estimation Inference Challenges open questions References } correlation nonlinearity random nonlinear least−squares linear regression ANOVA analysis of covariance multiple linear regression (non−normal errors) (nonlinearity) repeated−measures models; time series (ARIMA) } generalized (non−normal errors) linear models random smooth nonlinearity scaled variance effects nonlinearity nonlinear time series models thresholds; mixtures; compound distributions; etc. etc. etc. etc. effects correlation (nonlinearity) general linear models logistic regression binomial regression log−linear models GLMM mixed models generalized additive models quasilikelihood negative binomial models
  • 9. Denitions Estimation Inference Challenges open questions References Coral protection from seastars (Culcita) by symbionts (McKeon et al., 2012) Number of predation events 2 2 1 2 2 1 none shrimp crabs both Symbionts 10 8 Number of blocks 0 6 4 2 1 0 0 0
  • 10. Denitions Estimation Inference Challenges open questions References Environmental stress: Glycera cell survival (D. Julian unpubl.) Anoxia Anoxia Anoxia Copper Normoxia Normoxia Osm=12.8 Osm=22.4 133.3 66.6 33.3 0 0 0.03 0.1 0.32 H2S Normoxia Osm=32 0 0.03 0.1 0.32 Anoxia Normoxia Osm=41.6 Anoxia Normoxia Osm=51.2 0 0.03 0.1 0.32 Osm=12.8 0 0.03 0.1 0.32 Osm=22.4 Osm=32 0 0.03 0.1 0.32 Osm=41.6 133.3 66.6 33.3 0 Osm=51.2 1.0 0.8 0.6 0.4 0.2 0.0
  • 11. Denitions Estimation Inference Challenges open questions References Arabidopsis response to fertilization herbivory (Banta et al., 2010) Log(1+fruit set) 5 4 3 2 1 0 nutrient : 1 l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l ll l ll l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l ll l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l ll l l l l l l ll ll ll l ll lll ll l l l ll ll l l lll l l l l l l l l l ll ll unclipped clipped nutrient : 8 l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l ll l l l l l l l l l l l l l l l l l l l l l l l l l l l l ll l l l l l l l l l l l l l l l l l l l l ll l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l ll l l l l l l ll l l ll l ll l l l l l l l l l l l l l l l l l l l ll l l ll l ll l l ll lll l lll ll l l l l ll llll l l unclipped clipped
  • 12. Denitions Estimation Inference Challenges open questions References Coral demography (J.-S. White unpubl.) Before Experimental l l l l l l l l l l l l l l l l l l l l lll l ll l l l l l l l l l l l l l l ll l l l l l ll l l ll l l l l ll l l ll l l l l l l llll l l l l l l l l l l l l l l l l l l l lll ll l l l l l l l l l l l ll l l l l l l l l l l l l l l l l l l l l l l l lll l l l l l l l l l l l l l l ll l l ll l l l l l l lll l l l ll l l l l l l l l l 1.00 0.75 0.50 0.25 0.00 l 0 10 20 30 40 50 0 10 20 30 40 50 Previous size (cm) Mortality probability Treatment l l Present Removed
  • 13. Denitions Estimation Inference Challenges open questions References Technical denition Yi |{z} response conditional disztr}ib|u{tion Distr (g1(i ) | {z } inverse link function ; |{z} scale ) parameter
  • 14. Denitions Estimation Inference Challenges open questions References Technical denition Yi |{z} response conditional disztr}ib|u{tion Distr (g1(i ) | {z } inverse link function ; |{z} scale ) parameter |{z} linear predictor = |X{z
  • 15. } xed eects + Zb |{z} random eects
  • 16. Denitions Estimation Inference Challenges open questions References Technical denition Yi |{z} response conditional disztr}ib|u{tion Distr (g1(i ) | {z } inverse link function ; |{z} scale ) parameter |{z} linear predictor = |X{z
  • 17. } xed eects + Zb |{z} random eects b |{z} conditional modes MVN(0; () | {z } ) variance- covariance matrix
  • 18. Denitions Estimation Inference Challenges open questions References What are random eects? A method for . . . accounting for among-individual, within-block correlation compromising between complete pooling (no among-block variance) and xed eects (innite among-block variance) handling levels selected at random from a larger population sharing information among levels (shrinkage estimation) estimating variability among levels allowing predictions for unmeasured levels
  • 19. Denitions Estimation Inference Challenges open questions References What are random eects? A method for . . . accounting for among-individual, within-block correlation compromising between complete pooling (no among-block variance) and xed eects (innite among-block variance) handling levels selected at random from a larger population sharing information among levels (shrinkage estimation) estimating variability among levels allowing predictions for unmeasured levels
  • 20. Denitions Estimation Inference Challenges open questions References What are random eects? A method for . . . accounting for among-individual, within-block correlation compromising between complete pooling (no among-block variance) and xed eects (innite among-block variance) handling levels selected at random from a larger population sharing information among levels (shrinkage estimation) estimating variability among levels allowing predictions for unmeasured levels
  • 21. Denitions Estimation Inference Challenges open questions References What are random eects? A method for . . . accounting for among-individual, within-block correlation compromising between complete pooling (no among-block variance) and xed eects (innite among-block variance) handling levels selected at random from a larger population sharing information among levels (shrinkage estimation) estimating variability among levels allowing predictions for unmeasured levels
  • 22. Denitions Estimation Inference Challenges open questions References What are random eects? A method for . . . accounting for among-individual, within-block correlation compromising between complete pooling (no among-block variance) and xed eects (innite among-block variance) handling levels selected at random from a larger population sharing information among levels (shrinkage estimation) estimating variability among levels allowing predictions for unmeasured levels
  • 23. Denitions Estimation Inference Challenges open questions References What are random eects? A method for . . . accounting for among-individual, within-block correlation compromising between complete pooling (no among-block variance) and xed eects (innite among-block variance) handling levels selected at random from a larger population sharing information among levels (shrinkage estimation) estimating variability among levels allowing predictions for unmeasured levels
  • 24. Denitions Estimation Inference Challenges open questions References Outline 1 Examples and denitions 2 Estimation Overview Methods 3 Inference 4 Challenges open questions
  • 25. Denitions Estimation Inference Challenges open questions References Maximum likelihood estimation Best t is a compromise between two components (consistency of data with xed eects and conditional modes; consistency of random eect with RE distribution) Goodness-of-t integrates over conditional modes l l l l l l l l l l l l l l l l l l l l l ll l l 2 1 0 −1 −2 1 2 3 4 5 f y
  • 26. Denitions Estimation Inference Challenges open questions References Shrinkage: Arabidopsis conditional modes 20 10 Mean fruit set 0 5 10 15 20 25 l l l l l l l l l l l l l l l l l l l l l l l l Genotype 1 0.1 0 l group mean shrinkage est.
  • 27. Denitions Estimation Inference Challenges open questions References Estimation methods deterministic : various approximate integrals (Breslow, 2004) Penalized quasi-likelihood, Laplace, Gauss-Hermite quadrature, . . . exibility and speed vs. accuracy . . . stochastic (Monte Carlo): frequentist and Bayesian (Booth and Hobert, 1999; Ponciano et al., 2009; Sung, 2007) usually slower but exible and accurate
  • 28. Denitions Estimation Inference Challenges open questions References Estimation: Culcita (McKeon et al., 2012) Log−odds of predation −6 −4 −2 0 2 Added symbiont Crab vs. Shrimp Symbiont l l l l l l l l l l l l l l l GLM (fixed) GLM (pooled) PQL Laplace AGQ
  • 29. Denitions Estimation Inference Challenges open questions References Outline 1 Examples and denitions 2 Estimation Overview Methods 3 Inference 4 Challenges open questions
  • 30. Denitions Estimation Inference Challenges open questions References Wald tests typical results of summary exact for ANOVA, regression: approximation for GLM(M)s fast approximation is sometimes awful (Hauck-Donner eect) parameter log−likelihood
  • 31. Denitions Estimation Inference Challenges open questions References 2D proles for Culcita data 0 −2 −4 −6 −8 −2 −6 −4 −2 −4 −6 −8 Scatter Plot Matrix 2 4 6 8 101214 .sig01 0 −1 −2 −3 15 10 (Intercept) 5 0 10 15 0 1 2 3 tttcrabs −10 −4 −2 0 0 1 2 3 tttshrimp −10 0 1 2 3 tttboth −2 −4 −6 −8 −10 −12 0 1 2 3
  • 32. Denitions Estimation Inference Challenges open questions References Likelihood ratio tests better than Wald, but still have to two problems: denominator degrees of freedom (when estimating scale) for GLMMs, distributions are approximate anyway (Bartlett corrections) Kenward-Roger correction? (Stroup, 2014) Prole condence intervals: expensive/fragile
  • 33. Denitions Estimation Inference Challenges open questions References Parametric bootstrapping t null model to data simulate data from null model t null and working model, compute likelihood dierence repeat to estimate null distribution should be OK but ??? not well tested (assumes estimated parameters are suciently good)
  • 34. Denitions Estimation Inference Challenges open questions References Parametric bootstrap results H2S Osm Cu True p value Inferred p value 0.08 0.06 0.04 0.02 0.02 0.06 0.02 0.06 0.08 0.06 0.04 0.02 Anoxia normal t(14) t(7)
  • 35. Denitions Estimation Inference Challenges open questions References Bayesian inference If we have a good sample from the posterior distribution (Markov chains have converged etc. etc.) we get most of the inferences we want for free by summarizing the marginal posteriors post hoc Bayesian can work, but mode at zero causes problems
  • 36. Denitions Estimation Inference Challenges open questions References Culcita condence intervals l l l l l l l l l l l l l l l tttshrimp tttcrabs tttboth (Intercept) block −15 −10 −5 0 5 10 15 Effect (log−odds of predation) CI l l l l Wald profile boot MCMC fun l glmer glmmADMB MCMCglmm
  • 37. Denitions Estimation Inference Challenges open questions References Outline 1 Examples and denitions 2 Estimation Overview Methods 3 Inference 4 Challenges open questions
  • 38. Denitions Estimation Inference Challenges open questions References On beyond R Julia: MixedModels package SAS: PROC MIXED, NLMIXED AS-REML Stata (GLLAMM, xtmelogit) AD Model Builder HLM, MLWiN
  • 39. Denitions Estimation Inference Challenges open questions References Challenges Small/medium data: inference, singular ts (blme, MCMCglmm) Big data: speed! Worst case: large n, small N (e.g. telemetry/genomics) Model diagnosis Condence intervals accounting for uncertainty in variances See also: http://rpubs.com/bbolker/glmmchapter, https: //groups.nceas.ucsb.edu/non-linear-modeling/projects
  • 40. Denitions Estimation Inference Challenges open questions References Spatial and temporal correlations Sometimes blocking takes care of non-independence ... but sometimes there is temporal or spatial correlation within blocks . . . also phylogenetic . . . (Ives and Zhu, 2006) G-side vs. R-side eects tricky to implement for GLMMs, but new possibilities on the horizon (Rousset and Ferdy, 2014; Rue et al., 2009)
  • 41. Denitions Estimation Inference Challenges open questions References Next steps Complex random eects: regularization, model selection, penalized methods (lasso/fence) Flexible correlation and variance structures Flexible/nonparametric random eects distributions hybrid improved MCMC methods Reliable assessment of out-of-sample performance
  • 42. Denitions Estimation Inference Challenges open questions References References Banta, J.A., Stevens, M.H.H., and Pigliucci, M., 2010. Oikos, 119(2):359369. ISSN 1600-0706. doi:10.1111/j.1600-0706.2009.17726.x. Booth, J.G. and Hobert, J.P., 1999. Journal of the Royal Statistical Society. Series B, 61(1):265285. doi:10.1111/1467-9868.00176. Breslow, N.E., 2004. In D.Y. Lin and P.J. Heagerty, editors, Proceedings of the second Seattle symposium in biostatistics: Analysis of correlated data, pages 122. Springer. ISBN 0387208623. Ives, A.R. and Zhu, J., 2006. Ecological Applications, 16(1):2032. McKeon, C.S., Stier, A., et al., 2012. Oecologia, 169(4):10951103. ISSN 0029-8549. doi:10.1007/s00442-012-2275-2. Ponciano, J.M., Taper, M.L., et al., 2009. Ecology, 90(2):356362. ISSN 0012-9658. Rousset, F. and Ferdy, J.B., 2014. Ecography, page nono. ISSN 1600-0587. doi:10.1111/ecog.00566. Rue, H., Martino, S., and Chopin, N., 2009. Journal of the Royal Statistical Society, Series B, 71(2):319392. Stroup, W.W., 2014. Agronomy Journal, 106:117. doi:10.2134/agronj2013.0342. Sung, Y.J., 2007. The Annals of Statistics, 35(3):9901011. ISSN 0090-5364. doi:10.1214/009053606000001389.