Generalized Additive Models versus Geographically Weighted Regression: a comparative analysis | Research Square window.SnipcartSettings = { analytics: { enabled: false } }; (function() { var accessVector = localStorage.getItem('access_vector') || ''; window.dataLayer = window.dataLayer || []; if (accessVector) { window.dataLayer.push({ user: { profile: { profileInfo: { snid: accessVector } } } }); } })(); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-K279D39R'); Browse Preprints In Review Journals COVID-19 Preprints AJE Video Bytes Research Tools Research Promotion AJE Professional Editing AJE Rubriq About Preprint Platform In Review Editorial Policies Our Team Advisory Board Help Center Sign In Submit a Preprint Cite Share Download PDF Research Article Generalized Additive Models versus Geographically Weighted Regression: a comparative analysis Francisco de Asis Lopez Alvarez, Celestino Ordoñez, Javier Roca Pardiñas This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-3869416/v1 This work is licensed under a CC BY 4.0 License Status: Posted Version 1 posted You are reading this latest preprint version Abstract Regression models for spatial data have attracted the attention of researchers from different fields given their widespread application. In this work we analyze the utility of generalized additive models (GAMs) as a regression method with spatially-dependent coefficients and compare them with geographically weighted regression (GWR), a popular method that performs a local linear regression in the vicinity of each point. The comparison was carried out using both simulated and real data. The comparison results on the simulated data showed better fit and lower uncertainty in the GAM approximation. The comparison using real data showed quite similar results for both methods, although the error in GAM was slightly lower for the GAM approach. Two other important aspects of spatial regression were also tackled in this study: 1) testing the spatial heterogeneity of the data, 2) selecting the significant covariates. The first aspect was addressed using both bootstrapping and the Bayesian information criterion (BIC), while only BIC was used for the second aspect. Spatial regression bootstrapping variable selection spatial heterogeneity Full Text Additional Declarations No competing interests reported. Cite Share Download PDF Status: Posted Version 1 posted You are reading this latest preprint version Research Square lets you share your work early, gain feedback from the community, and start making changes to your manuscript prior to peer review in a journal. As a division of Research Square Company, we’re committed to making research communication faster, fairer, and more useful. We do this by developing innovative software and high quality services for the global research community. Our growing team is made up of researchers and industry professionals working together to solve the most critical problems facing scientific publishing. Also discoverable on Platform About Our Team In Review Editorial Policies Advisory Board Help Center Resources Author Services Accessibility API Access RSS feed Manage Cookie Preferences © Research Square 2026 | ISSN 2693-5015 (online) Privacy Policy Terms of Service Do Not Sell My Personal Information {"props":{"pageProps":{"initialData":{"identity":"rs-3869416","acceptedTermsAndConditions":true,"allowDirectSubmit":true,"archivedVersions":[],"articleType":"Research Article","associatedPublications":[],"authors":[{"id":267745554,"identity":"ede69948-71c3-48ca-afd3-e31fb6c2157c","order_by":0,"name":"Francisco de Asis Lopez Alvarez","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAA80lEQVRIiWNgGAWjYBAC9gYwJcHAx8DAeOADkMnGTkALzwGoFjYgeXAGSAszcVoYwFoO84BYBLVIH3724McfC3s29uYHh21+bZPnY2Zg/PAxB48WvjRzw942icQ2nmMGh3P7bhu2MTMwS87chluLPQ+DmQRvg0QCm0QCUEvPbUagFjZmXjxaeHjYv0n++SNhzyaR/uGwZc9teyK08JhJ87BJMLZJ5BgcZvhxO5EYLWXSsmC/nCk42NtwO7mNmbEZr1+ADtsm+eZPnT0/e/tGYNDdtp3f3nzww0c8WlABYxuYbCBWPQj8IUXxKBgFo2AUjBQAADkZSQggMBAeAAAAAElFTkSuQmCC","orcid":"","institution":"Universidade de Vigo","correspondingAuthor":true,"prefix":"","firstName":"Francisco","middleName":"de Asis Lopez","lastName":"Alvarez","suffix":""},{"id":267745555,"identity":"e4637755-1973-4457-8fc2-81ab850e5300","order_by":1,"name":"Celestino Ordoñez","email":"","orcid":"","institution":"University of Oviedo","correspondingAuthor":false,"prefix":"","firstName":"Celestino","middleName":"","lastName":"Ordoñez","suffix":""},{"id":267745556,"identity":"f6eae4a8-b6a3-499a-a806-5056ac79a172","order_by":2,"name":"Javier Roca Pardiñas","email":"","orcid":"","institution":"Universidade de Vigo","correspondingAuthor":false,"prefix":"","firstName":"Javier","middleName":"Roca","lastName":"Pardiñas","suffix":""}],"badges":[],"createdAt":"2024-01-16 10:00:03","currentVersionCode":1,"declarations":"","doi":"10.21203/rs.3.rs-3869416/v1","doiUrl":"https://doi.org/10.21203/rs.3.rs-3869416/v1","draftVersion":[],"editorialEvents":[],"editorialNote":"","failedWorkflow":false,"files":[{"id":56713167,"identity":"947ab333-4ddd-44be-b75d-798bbc83e713","added_by":"auto","created_at":"2024-05-18 16:01:54","extension":"pdf","order_by":1,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":2098497,"visible":true,"origin":"","legend":"","description":"","filename":"latex.pdf","url":"https://assets-eu.researchsquare.com/files/rs-3869416/v1_covered_ca625413-d9e0-4201-a230-92ba58f276bd.pdf"}],"financialInterests":"No competing interests reported.","formattedTitle":"Generalized Additive Models versus Geographically Weighted Regression: a comparative analysis","fulltext":[],"fulltextSource":"","fullText":"","funders":[],"hasAdminPriorityOnWorkflow":false,"hasManuscriptDocX":false,"hasOptedInToPreprint":true,"hasPassedJournalQc":"","hasAnyPriority":false,"hideJournal":true,"highlight":"","institution":"","isAcceptedByJournal":false,"isAuthorSuppliedPdf":true,"isDeskRejected":"","isHiddenFromSearch":false,"isInQc":false,"isInWorkflow":false,"isPdf":true,"isPdfUpToDate":true,"isWithdrawnOrRetracted":false,"journal":{"display":true,"email":"
[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true},"keywords":"Spatial regression, bootstrapping, variable selection, spatial heterogeneity","lastPublishedDoi":"10.21203/rs.3.rs-3869416/v1","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-3869416/v1","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"Regression models for spatial data have attracted the attention of researchers from different fields given their widespread application. In this work we analyze the utility of generalized additive models (GAMs) as a regression method with spatially-dependent coefficients and compare them with geographically weighted regression (GWR), a popular method that performs a local linear regression in the vicinity of each point. The comparison was carried out using both simulated and real data. The comparison results on the simulated data showed better fit and lower uncertainty in the GAM approximation. The comparison using real data showed quite similar results for both methods, although the error in GAM was slightly lower for the GAM approach. Two other important aspects of spatial regression were also tackled in this study: 1) testing the spatial heterogeneity of the data, 2) selecting the significant covariates. The first aspect was addressed using both bootstrapping and the Bayesian information criterion (BIC), while only BIC was used for the second aspect.","manuscriptTitle":"Generalized Additive Models versus Geographically Weighted Regression: a comparative analysis","msid":"","msnumber":"","nonDraftVersions":[{"code":1,"date":"2024-01-19 18:23:21","doi":"10.21203/rs.3.rs-3869416/v1","editorialEvents":[{"type":"communityComments","content":0}],"status":"published","journal":{"display":true,"email":"
[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true}}],"origin":"","ownerIdentity":"bb0a6e24-0c05-4410-b09a-714165d8661b","owner":[],"postedDate":"January 19th, 2024","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"posted","subjectAreas":[],"tags":[],"updatedAt":"2024-05-18T15:53:46+00:00","versionOfRecord":[],"versionCreatedAt":"2024-01-19 18:23:21","video":"","vorDoi":"","vorDoiUrl":"","workflowStages":[]},"version":"v1","identity":"rs-3869416","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-3869416","identity":"rs-3869416","version":["v1"]},"buildId":"qtupq5eGEP_6zYnWcrvyt","isFallback":false,"isExperimentalCompile":false,"dynamicIds":[84888],"gssp":true,"scriptLoader":[]}
Text is read by the "Ask this paper" AI Q&A widget below.
Extraction quality varies by source — PMC NXML preserves structure
cleanly, OA-HTML may include some navigation residue, and OA-PDF can
have broken hyphenation. The publisher copy
(via DOI)
is the canonical version.