<html><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }body { font-size: 10.5pt; font-family: ????; color: rgb(0, 0, 0); line-height: 1.5; }body { font-size: 10.5pt; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div>Hi Metastate,<span></span></div><div><br></div><div>Yes, I found there is a problem in the function gwr.mixed, as the Line 119 code should be :</div><div><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">SpatialPolygonsDataFrame(Sr=polygons, data=mgwr.df, match.ID=F)</span></div><div><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">but the parameter "</span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">match.ID=F</span><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">" is missed.</span></div><div><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">I've revised it in the attached code. Currently you can re-source this function after loading the package. It will be fine to run you command. I will update the code in the next submission of package. Cheers.</span></div><div><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;"><br></span></div><div><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">Best regards,</span></div><div><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;"><br></span></div><div><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">Binbin</span></div><div><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;"><br></span></div><div><br></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div> </div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>From:</b> <a href="mailto:metastate@gmail.com">Metastate Metastate</a></div><div><b>Date:</b> 2015-09-03 06:11</div><div><b>To:</b> <a href="mailto:r-sig-geo@r-project.org">r-sig-geo</a></div><div><b>Subject:</b> [R-sig-Geo] Error with gwr.mixed in GWmodel package</div></div></div><div><div>Hi,</div>
<div> </div>
<div>I applied the gwr.basic and gwr.mixed on the same SPDF file using the codes</div>
<div>below. I got an error message on gwr.mixed:</div>
<div> </div>
<div>Error in SpatialPolygonsDataFrame(Sr = polygons, data = mgwr.df) :</div>
<div>row.names of data and Polygons IDs do not match</div>
<div> </div>
<div>I had no problem with gwr.basic.</div>
<div> </div>
<div>The code I used was:</div>
<div> </div>
<div>gwr.res2 <- gwr.basic(Yield_Detrend~Tsfc_4_10+PCP_IN_7_8+PCP_IN_4_6,</div>
<div>data = Yield.spdf.sub,kernel = "bisquare", adaptive = TRUE, bw=50,</div>
<div>F123.test = TRUE)</div>
<div> </div>
<div>mgwr.res2 <-gwr.mixed(Yield_Detrend~Tsfc_4_10+Pcp_30D_LT_2IN_4+PCP_IN_7_8</div>
<div> +Elevation, fixed.vars=c("Pcp_30D_LT_2IN_4",</div>
<div>"Elevation"),data = Yield.spdf.sub,kernel = "bisquare", adaptive =</div>
<div>TRUE, bw=50, diagnostic=T)</div>
<div> </div>
<div>Also, Is it any easy way I can provide the spdf file if you need it to</div>
<div>check?</div>
<div> </div>
<div>Thank you very much for your help.</div>
<div> </div>
<div>Meta</div>
<div> </div>
<div> [[alternative HTML version deleted]]</div>
<div> </div>
<div>_______________________________________________</div>
<div>R-sig-Geo mailing list</div>
<div>R-sig-Geo@r-project.org</div>
<div>https://stat.ethz.ch/mailman/listinfo/r-sig-geo</div>
</div></blockquote>
</body></html>