I am working on a project where I have to generate a model for road deterioration. I am using logistic regression but since the stretches of road are related in space so I have to test for spatial autocorrelation on the residuals of logistic regression. If spatial effects are present, how to account for those effects?
Any package in R that may be useful.