I am trying to connect for spatial autocorrelation using the gls function in the nlme package using the following code:
modelExp<- gls(avg_diff ~ burnsev/Species, data= burn, na.action = na.omit,
correlation = corExp(form = ~Lat + Long, nugget = TRUE)
However, I keep getting the error:
Error in getCovariate.corSpatial(object, data = data) :
cannot have zero distances in "corSpatial"
Despite having removed all duplicate coordinates from my data frame, this error persists. Does anyone know how to fix this error? Could there perhaps be an issue of spatial resolution? Some of my points are separated by < 0.0001 decimal degrees.
Thank you!