Code Monkey home page Code Monkey logo

gw-enlr's Introduction

GW-ENLR: Geographically weighted elastic net logistic regression - code and data

The code and data in this repository are for the GW-ELNR simulation study described in the Journal of Geographical Systems submission. The code is described in the file Comber_Harris_GW-ENLR_code_simulation.R. To run the simulation data you will need to download the zip file from this repository and unzip the files to a directory of your choice. This should then be set as the working directory in R using the setwd() function.

Please contact Lex Comber [email protected] if you have any questions.

Paper title: Geographically weighted elastic net logistic regression

Alexis Comber1 and Paul Harris2

1School of Geography, University of Leeds, Leeds, UK LS2 9JT
2Rothamsted Research, North Wyke, Okehampton, Devon, UK EX20 2SB

Abstract

This paper develops and applies a localized approach to elastic net logistic regression. It uses a geographically weighted framework to subset and weight data for case studies to predict a) whether counties in the USA voted for Trump in the 2016 presidential elections using socio-economic data, and b) species presence-absence from environmental data. The rationale for the approach relates to: the efficiency of techniques such as penalized regression at model selection and information reduction and overcoming predictor variable collinearity; the lack of sensitivity to and obfuscation of local trends in the data by global, whole map models; and the potential for high local collinearity amongst predictor variables in local data subsets in geographically weighted models even when none is observed globally. Collinearity can result in a loss of precision and power in the coefficient estimates leading to poor inferences. The GW-ELNR was compared with other regression models and improved prediction for the election case study only. This exhibited much greater spatial heterogeneity in the binary response than the species case study. However, model comparisons for both case studies showed that standard geographically weighted logistic regression over-estimated relationship non-stationarity because it failed to adequately deal with collinearity and model selection. Mapping the GW-ELNR coefficient estimates and indicating the locations of local collinearity amongst predictor variables provides a deeper understanding of the data structure and how best to develop a potential predictive model by. It also confirms or not perceptions of relationship non-stationarity. GW-ELNR was evaluated through a simulation experiment which endorsed this value of the new model. On-going work is investigating locally-derived local elastic net parameters.

April 2018.

gw-enlr's People

Contributors

lexcomber avatar

Watchers

James Cloos avatar  avatar

Forkers

sopale

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.