{"id":34,"date":"2018-04-11T12:10:07","date_gmt":"2018-04-11T19:10:07","guid":{"rendered":"https:\/\/blogs.ubc.ca\/mappinglungcancer\/?page_id=34"},"modified":"2018-04-19T18:40:31","modified_gmt":"2018-04-20T01:40:31","slug":"geographically-weighted-regression-gwr","status":"publish","type":"page","link":"https:\/\/blogs.ubc.ca\/mappinglungcancer\/geographically-weighted-regression-gwr\/","title":{"rendered":"Geographically Weighted Regression (GWR)"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">As OLS is an a-spatial statistical method, it requires data values to be distributed randomly across space and assumes that the explanatory variables exhibit stationarity in their regression coefficients. However, in most cases clustering and non-stationarity are inherent in spatial data, which calls for the use of different spatial statistical methods. Indeed, as Tobler (1970) said, \u201ceverything is related to everything else, but near things are more related than distant things.\u201d In both OLS regression results, spatial clustering is evident (<a href=\"https:\/\/blogs.ubc.ca\/mappinglungcancer\/ols-regression\/\">see OLS Results<\/a>). This is why we decided to include geographically weighted regression in our analysis.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">When we ran our OLS regression models in ArcMap, two output surfaces were produced from which we could map residuals. Using the Moran\u2019s I spatial statistics tool in ArcMap, we tested the residuals of both models for spatial autocorrelation. In both cases the residuals exhibited significant spatial autocorrelation or clustering (<\/span><span style=\"font-weight: 400;\">Figure 4.1<\/span><span style=\"font-weight: 400;\">). Significant spatial autocorrelation of residuals justified the use of GWR as it signifies clustering and non-stationary within our OLS regression model.<\/span><\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_124\" aria-describedby=\"caption-attachment-124\" style=\"width: 627px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-124 size-full\" src=\"https:\/\/blogs.ubc.ca\/mappinglungcancer\/files\/2018\/04\/MoranI_Residuals_No_Smoke.png\" alt=\"\" width=\"627\" height=\"826\" srcset=\"https:\/\/blogs.ubc.ca\/mappinglungcancer\/files\/2018\/04\/MoranI_Residuals_No_Smoke.png 627w, https:\/\/blogs.ubc.ca\/mappinglungcancer\/files\/2018\/04\/MoranI_Residuals_No_Smoke-228x300.png 228w\" sizes=\"auto, (max-width: 627px) 100vw, 627px\" \/><figcaption id=\"caption-attachment-124\" class=\"wp-caption-text\">Figure 4.1: Moran&#8217;s I output results highlight the positive spatial autocorrelation of OLS Model 1&#8217;s regression residuals. This result exhibits significant clustering and justifies the uses of geographically weighted regression (GWR)<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">GWR accounts for spatial autocorrelation and non-stationarity by calculating local regression equations for each feature. The output of which can be mapped to view which areas of our study area are best explained by the model (those with highest local adjusted r-squared) and vice versa. For our GWR model we specified an adaptive kernel with an optimal number of neighbours calculated using the corrected Akaike Information Criterion (AICc) bandwidth parameter. The explanatory variables used in the GWR analysis were the same properly specified variables used in the previous OLS regression models.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Unfortunately, when attempting to perform the GWR regression using the explanatory variables determined in Model 2 (which included our smoking prevalence variable) our model experienced severe design problems. As our OLS outputs indicated low variance inflation factors (VIF) associated with our explanatory variables (which test global multicollinearity), it was evident one or more of our variables experienced high levels of local multicollinearity. As this issue could not be resolved through troubleshooting, only Model 1 was used in the GWR analysis.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As OLS is an a-spatial statistical method, it requires data values to be distributed randomly across space and assumes that the explanatory variables exhibit stationarity in their regression coefficients. However, in most cases clustering and non-stationarity are inherent in spatial data, which calls for the use of different spatial statistical methods. Indeed, as Tobler (1970) &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blogs.ubc.ca\/mappinglungcancer\/geographically-weighted-regression-gwr\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Geographically Weighted Regression (GWR)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":45291,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-34","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blogs.ubc.ca\/mappinglungcancer\/wp-json\/wp\/v2\/pages\/34","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.ubc.ca\/mappinglungcancer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blogs.ubc.ca\/mappinglungcancer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.ubc.ca\/mappinglungcancer\/wp-json\/wp\/v2\/users\/45291"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.ubc.ca\/mappinglungcancer\/wp-json\/wp\/v2\/comments?post=34"}],"version-history":[{"count":10,"href":"https:\/\/blogs.ubc.ca\/mappinglungcancer\/wp-json\/wp\/v2\/pages\/34\/revisions"}],"predecessor-version":[{"id":185,"href":"https:\/\/blogs.ubc.ca\/mappinglungcancer\/wp-json\/wp\/v2\/pages\/34\/revisions\/185"}],"wp:attachment":[{"href":"https:\/\/blogs.ubc.ca\/mappinglungcancer\/wp-json\/wp\/v2\/media?parent=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}