[R-sig-Geo] Error with gwr.mixed in GWmodel package

Metastate Metastate metastate at gmail.com
Thu Sep 3 00:11:47 CEST 2015


I applied the gwr.basic and gwr.mixed on the same SPDF file using the codes
below. I got an error message on gwr.mixed:

Error in SpatialPolygonsDataFrame(Sr = polygons, data = mgwr.df) :
row.names of data and Polygons IDs do not match

I had no problem with gwr.basic.

The code I used was:

gwr.res2 <- gwr.basic(Yield_Detrend~Tsfc_4_10+PCP_IN_7_8+PCP_IN_4_6,
data = Yield.spdf.sub,kernel = "bisquare", adaptive = TRUE, bw=50,
F123.test = TRUE)

mgwr.res2 <-gwr.mixed(Yield_Detrend~Tsfc_4_10+Pcp_30D_LT_2IN_4+PCP_IN_7_8
                  +Elevation, fixed.vars=c("Pcp_30D_LT_2IN_4",
"Elevation"),data = Yield.spdf.sub,kernel = "bisquare", adaptive =
TRUE, bw=50, diagnostic=T)

Also, Is it any easy way I can provide the spdf file if you need it to

Thank you very much for your help.


	[[alternative HTML version deleted]]

More information about the R-sig-Geo mailing list