Displaying 1 result from an estimated 1 matches for "casos1".
Did you mean:
casos
2008 Oct 08
1
Error in spdep: system is computationally singular
Hi all,
I am trying to run an autologistic model using the function errorsarlm from spdep package.
**I built an XY matrix extracting the two colums from matriz**
coords1<-matriz[matriz$casos1==1, c(4,5)]
coords1<-as.matrix(coords1)
**I identify neighbours of region points**
nb20<-dnearneigh(coords1,0,20,longlat=TRUE)
** I build a neighbours list with spatial weights**
nb20.w<-nb2listw(nb20, glist=NULL, style="W", zero.policy=TRUE)
**I run a glm**
glm1<-glm(ma...