Skip to content
Prev 8124 / 29559 Next

Moran's I negative binomial generalized linear model

On Fri, 23 Apr 2010, Wild Life wrote:

            
If you examine the class of a model object fitted using glm(), you'll see 
that it also inherits from "lm". This means that you may use 
lm.morantest() at your own risk. This is not the same as moran.test(), and 
I do not believe that Lin and Zhang suggested its use. I have no idea why 
you think that sparse matrices are involved. In testing model residuals, 
it is essential to handle the presence of the X variables, which is what 
lm.morantest() does. Since no studies have been done to find out how 
accurately this test detects spatial autocorrelation in glm errors, it is 
premature to simply extend findings for lm objects. It is also unclear 
whether this is what Lin and Zhang did, as I am unaware of them having 
published their code.

Hope this helps,

Roger