Re: [ECOLOG-L] Spatial regression errors using R

2017-05-11 Thread Qingchen Liang
Actually, the problem is with the argument for the coords parameter. gwr() function wants a 2-column matrix for that, Testpts2 is of class SpatialPointsDataFrame, so the function doesn't know what to do with the input. We need to specifically call the coords slot of Testpts2 class using

[ECOLOG-L] Spatial regression errors using R

2017-05-08 Thread James Garrett
Hello all: I am having trouble running a geographically weighted regression on raster data using R (raster, spgwr, and sp packages) and was hoping someone on here might have some guidance. I keep getting two different errors when troubleshooting my model. "'dimnames' applied to non-array" or