MAR 536: Biological Statistics II
Lecture 18
Spatial mixed effects models
(Acknowledgements: Jim Thorson, Sean Anderson)
07 April 2020
Today’s Outline
Linear Mixed Effects Models
Vector of fixed effects
Vector of random effects
Observations for group i
The traditional linear modeling framework is a special case
of this model in which there are no random effects.
Estimation of mixed effects models
Maximum Likelihood Estimation (MLE)
is the vector of fixed effects parameters.
are the parameters controlling the distribution for the random effects.
We integrate across the random effects.
Effectively weight the probability of the observations given values for random effects by the probability of those values.
In the linear case, closed form solutions exist. For nonlinear models, either evaluate numerically or use approximations.
Spatial autocorrelation – wheat fields
Model for wheat yield by variety
Residuals show spatial pattern
A variogram shows how the covariance changes with distance between observations.
Update the model with correlation model in residuals
Residual pattern is removed
Spatial Mixed Effects Models
Vector of fixed effects
spatial random effects
Observations at location j
Include a spatial random effect term for each area, the distribution�for these is governed by a variance-covariance matrix, often�decomposed into a variance term, and a distance-based
spatial correlation matrix.
Spatial covariance
Fitting non-linear mixed effects models
Skaug & Fournier (2006), Thorson & Minto (2015)
Recommended Reading
Bolker et al. (2008). Generalized linear mixed models: a practical guide for ecology and evolution. TREE: 24: 127-35.
Pinheiro, J.C. & Bates, D.M. (2000). Mixed-Effects Models in S and S-PLUS. New York: Springer-Verlag.
Skaug, H. J., & Fournier, D. A. (2006). Automatic approximation of the marginal likelihood in non-gaussian hierarchical models. Computational Statistics & Data Analysis, 51(2), 699-709.
Thorson, J. T., & Minto, C. (2014). Mixed effects: a unifying framework for statistical modelling in fisheries biology. ICES Journal of Marine Science: Journal du Conseil, fsu213.
Venables, W. N., & Dichmont, C. M. (2004). GLMs, GAMs and GLMMs: an overview of theory for applications in fisheries research. Fisheries Research, 70(2), 319-337.
Zuur et al. (2009). Mixed-effects Models and Extensions in Ecology with R. New York: Springer-Verlag.