Skip to content
Prev 139908 / 398502 Next

analyzing binomial data with spatially correlated errors

Jean-Baptiste Ferdy <Jean-Baptiste.Ferdy <at> univ-montp2.fr> writes:
This is a hard problem.  The proximal issue is that lmer does not yet 
include a correlation term (I'm a little surprised you didn't get an 
error to that effect), and won't for some time since it is still in heavy
development for more basic features.  If your data were normal you could 
use gls from the nlme package, but nlme doesn't do generalized LMMs 
(only LMMs and NLMMs).  You could *almost* use glmmPQL from the MASS package,
which allows you to fit any lme model structure
within a GLM 'wrapper', but as far as I know it wraps only lme (
which requires at least one random effect) and not gls.

  You could try gee or geoRglm -- neither trivially easy, I think ...

  Ben Bolker