I am relatively new to R. I am attempting to use the gwrr package because I suspect that local collinearity may be an issue in my geographic weighted regression model.
If I am not mistaken, I first estimate the kernel bandwidth function using cross-validation. Below please find my R script. Diab is a spatial data set projected in Albers Equal Area Conic.
tt<-gwr.bw.est(dia2013~pctblacks + pcthis + pctpov+ lcollege+ newden+hosden10 +optden13 + totmdden13 + phyden13 + den13 + nurseden13 + nohealthin + unemploy + transport, data=diab, kernel = "gauss", cv.tol=30)
However, I get the following error:
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘geometry’ for signature ‘"numeric"’
Does anyone know what is going on?