Skip to content
Prev 18449 / 29559 Next

Base correlation larger than alpha (ME - Spdep package

On Mon, 10 Jun 2013, Rodrigo Tardin wrote:

            
These are not the same models - lagcol1 is as you know the process in the 
response (here OCC - RT??), not in the error. In ME, the process is in the 
error, and it looks as though the covariates mop up much of the spatial 
dependence (it is also a Poisson model with a default log link). 
SpatialFiltering() does not handle an offset (as you have realised, I 
think), so again, this is a possible source of difference. ME is testing 
slightly diffferently too. Do:

errcol1  <-  SpatialFiltering(I(OCC-RT)  ~  DEPTH  +  DISTCOAST +
  SLOPE, data=bryde3,  style="W",  nb=nb1, alpha=0.05,  verbose=TRUE)
glmerr1  <-  glm(OCC ~  DEPTH  +  DISTCOAST+SLOPE +  fitted(errcol1),
  offset=RT, data=bryde3)

and

errcol2  <-  ME(OCC ~  DEPTH  +  DISTCOAST+SLOPE,  offset=RT, 
data=bryde3, family="gaussian", listw=lw1,  alpha=0.05,  verbose=TRUE)
glmerr12  <-  glm(OCC ~  DEPTH  +  DISTCOAST+SLOPE +  fitted(errcol2),
  offset=RT, data=bryde3)

give similar results?

Hope this helps,

Roger