Hi. I have a dataset of unique coordinates (no missing coordinates). When I did the following:
lonlat<-mydata[, c("lon, "lat")] sp1<-corSpatial(1,form=~lon+lat,type="g") scor<-Initialize(sp1, lonlat , nugget=FALSE) I got a value for sp1 (2.67). But got an error message for scor--Error in getCovariate.corSpatial(object, data = data) : Cannot have zero distances in "corSpatial" I find that puzzling since I have unique coordinates and there should not be any zero distances. Any idea? Thanks! K. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.