<div dir="ltr"><div class="gmail_default" style="font-family:arial,sans-serif">Hello, </div><div class="gmail_default" style="font-family:arial,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,sans-serif">My name is Aqshems and I am a graduate student researcher at UC-Berkeley. I have a general question concerning Geographic Weighted Regression (GWR) in QGIS. Has anyone successfully conducted a GWR in QGIS? I have attempted to run a GWR using the Spatial Analysis Toolbox plugin and also Geographically Weighted Regression plugin but have run into technical issues when I do so. More specifically, I obtain the following two errors when I do so:<br></div><div class="gmail_default" style="font-family:arial,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,sans-serif">1) Spatial Analysis Toolbox plugin</div><div class="gmail_default" style="font-family:arial,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,sans-serif"><p style="margin:0px"><span style="color:rgb(255,0,0)">AttributeError: 'tuple' object has no attribute 'shape'<br></span></p>
<p style="margin:0px"><span style="color:rgb(255,0,0)">Execution failed after 0.86 seconds</span></p><p style="margin:0px"><span style="color:rgb(255,0,0)"><br></span></p><img src="cid:ii_lmtgh6my0" alt="image.png" width="542" height="275"><p style="margin:0px"><br></p><p style="margin:0px"><br></p><img src="cid:ii_lmtgjafz3" alt="image.png" width="562" height="285"><p style="margin:0px"><br></p><p style="margin:0px">2) Geographically Weighted Regression plugin</p><p style="margin:0px"><span style="color:rgb(255,0,0)">AttributeError: 'tuple' object has no attribute 'shape'<br></span></p><p style="margin:0px"><span style="color:rgb(255,0,0)">Execution failed after 1.31 seconds</span></p><img src="cid:ii_lmtgm8yz4" alt="image.png" width="562" height="284"><p style="margin:0px"><br></p><img src="cid:ii_lmtgo2l86" alt="image.png" width="562" height="286"><p style="margin:0px"><br></p><p style="margin:0px">It is important to note that for the screenshots above I am inputting a layer with geometry coordinates calculated from the centroid of each census tract. The original shapefile I am working with is a U.S. state divided into census tracts. When I enter a shapefile of census tracts without centroids calculated (shown below), I get a similar error that says something like <span style="color:rgb(255,0,0)">AttributeError: 'Polygon' object has no attribute 'x':</span></p><img src="cid:ii_lmtgvxmj8" alt="image.png" width="542" height="277"><img src="cid:ii_lmtgwwku9" alt="image.png" width="542" height="276"><p style="margin:0px"><br></p><p style="margin:0px">If anyone has run into this issue and knows how to resolve it and would like to share, the feedback would be greatly appreciated. Thank you for your consideration.</p><p style="margin:0px"><br></p><p style="margin:0px">Regards,</p><p style="margin:0px"><br></p><p style="margin:0px">Aqshems Nichols</p><p style="margin:0px"><a href="mailto:aqshems@berkeley.edu">aqshems@berkeley.edu</a></p></div></div>