Hello I am trying to use the correlog function to estimate a spatial correlogram for the residuals of a logistic regression and I have run accross the following error. > summary(binom1 <- glm(Use~X20mslop+X20mdem+soilsst, family=binomial, + data=M60m2000NE_1.df))
> correlog1.1 <- correlog(M60m2000NE_1.df$X, M60m2000NE_1.df$Y, > residuals(binom1),w=NULL, + na.rm=T, increment=1, resamp=0) Error in split.default(moran, dkl) : Group length is 0 but data length > 0 Can anyone help me to understand what this error is referring to and suggest how I can fix it? Thanks Tara PS Please see the file uploaded below :) http://r-sig-geo.2731867.n2.nabble.com/file/n5607783/Modified60m2000TrainingSetANoEcotour_05_25B.csv Modified60m2000TrainingSetANoEcotour_05_25B.csv -- View this message in context: http://r-sig-geo.2731867.n2.nabble.com/spatial-correlogram-tp5607783p5607783.html Sent from the R-sig-geo mailing list archive at Nabble.com. _______________________________________________ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo