Skip to content

Base correlation larger than alpha (ME - Spdep package

5 messages · Rodrigo Tardin, Roger Bivand

#
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

  
    
#
On Tue, 11 Jun 2013, Rodrigo Tardin wrote:

            
You can only use SpatialFiltering when you could use lm(), not glm() to 
fit the model, its results are only valid in that case. If your response 
is binomial, only the results of ME are valid. In addition, only ME() 
handles the offset correctly as far as I know. Do not use SpatialFiltering 
when themodel cannot not be fitted with lm().

Roger