Skip to content

Using Spatial Eigenvector Mapping for Negative Binomial GLM

2 messages · Pablo Gonzalez, Roger Bivand

#
On Tue, 31 Jan 2012, Pablo Gonzalez wrote:

            
The usual reason for complex eigenvectors from weights matrices is that 
they are asymmetric. In your editing of ME(), did you remove the line 
making sure that W is symmetric:

listw <- listw2U(listw) # make weights symmetric

Try doing bits manually outside your draft function. If:

 	Wmat <- listw2mat(listw) # convert to full matrix form
 	Cent <- diag(n) - (matrix(1, n, n)/n)
 	eV <- eigen(Cent %*% Wmat %*% Cent, EISPACK=TRUE)$vectors

eV are complex, something odd is going on, and maybe the EISPACK=TRUE is 
an issue. Are all the Im(eV) zero?

Roger