Skip to content

Incorporating spatial correlation matrix into lmer?

1 message · Douglas Bates

#
Thank you for your question, Rachel.

As we agreed in a separate email exchange, I am copying the
R-SIG-Mixed-Models email list on my reply.
On Mon, Feb 21, 2011 at 4:44 PM, Rachelle K. Gould <rgould at stanford.edu> wrote:
Not directly, no.  I feel that this type of model has to be approached
very carefully, especially in a GLMM.  I'll try to explain why I think
this but I apologize in advance that the explanation may get rather
technical.

In a linear mixed model it is possible to model the
variance-covariance structure of the conditional distribution of the
response, given the random effects, separately from the mean.  This is
because the conditional distribution is Gaussian (or "normal") and you
can manipulate either the mean or the variance of a Gaussian
distribution without affecting the other.

You didn't specify what distribution family you would have in your
GLMM but I'll assume it would be the binomial or the Poisson family.
On both of those cases the conditional variance is determined by the
conditional mean.  Although one can incorporate spatial correlation
into the computational method, which is based on iteratively
reweighted least squares calculations, the spatial correlation cannot
be part of the original model for the conditional distribution.

One approach that can be used is to incorporate random effects, which
do have a Gaussian distribution in the models fit by lmer or glmer,
that have the spatial correlation in their distribution.  At present
this model is not fit directly by glmer but as a one-off calculation
it may be possible to do this in the development version of the lme4
package.  It would depend to some extent on whether you or someone
else with the interest and reasonably good R programing skills would
want to undertake the work.  I could describe how to do it but
probably would not have time to do development myself.