当我尝试找到地理加权回归的带宽时,我收到一条错误消息:
lm.wfit(y = y,x = x,w = w.i)中的错误:尺寸不兼容
w.i *重量: 较长的物体长度不是较短的物体长度的倍数
class : SpatialPointsDataFrame
features : 458040
extent : -18.125, 57.95833, -34.79167, 46.95833 (xmin, xmax, ymin, ymax)
coord. ref. : +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0
variables : 2
names : Frich_full, species_richness.7.11.2018
min values : 0.0156647693365812, 1
max values : 61.0580902099609, 63
#Get the "bandwidth" of the space kernel through cross validation
spdf.bw <- gwr.sel(Frich_full ~species_richness.7.11.2018, data=spdf, longlat = TRUE, gweight=gwr.Gauss, show.error.messages = TRUE)
非常感谢您进一步了解此错误消息的含义