Code Monkey home page Code Monkey logo

transboundary-water-conflict's Introduction

Transboundary Water Conflict

A Final Project for GOV 1005 (Data) at Harvard University

Project Summary

Since the 1990s, there has been a precipitous increase in the frequency and severity of water conflicts (violent interactions between states where water is a primary source of conflict or is used as a weapon of conflict) around the world. Scholars have primarily studied this phenomenon qualitatively and at a regional level, hypothesizing that increased water conflict might be due to scarcity resulting from population increases, economic development, climatic conditions, or anti-democratic governance. This project compiles and analyzes a wide variety of metrics for the 254 major river basins of the world, taking a first step toward evaluating the claims of these qualitative scholars. By showing which factors are correlated with water conflict, this project serves as the groundwork for my senior honors thesis on the governance of transboundary natural resources in the Middle East.

View the live Shiny App here.

Repository Guide

  • /archive: Archived course milestone assignments.
  • /shiny-app: Files to render Shiny App.
    • /raw_data: Raw data files from the Oregon State University Program on Water Conflict Transformation and country/river basin polygons from the World Bank.
    • ag_land.rds: Agricultural land per country-year. Rendered using the 'gather_raw_data.R' script.
    • basins.rds: List of world river basins, compiled by joining the World Bank river basin index and the Oregon State University river basin index.
    • eiu_mod.rds: Democracy data per country in 2015. Rendered using the 'gather_raw_data.R' script.
    • gather_leaflet.R: Modifies river basin and country shapefiles to include relevant metrics.
    • gather_raw_data.R: Gathers, cleans, tidies and joins 8 datasets from OSU and the World Bank (water conflict metrics and country-level statistics).
    • gdp.rds: GDP per country-year. Rendered using the 'gather_raw_data.R' script.
    • joined.rds: Master dataset with all relevant metrics, organized by country-year, joined and cleaned from all the raw datasets. Rendered using the 'gather_raw_data.R' script.
    • joined_logistic.rds: Transforms the 'joined.rds' dataset to be used for logistic regression (each basin-year is coded 0/1, where 1 means that an event occured).
    • joined_summarized.rds: Transforms the 'joined.rds' dataset to be used for glm regression (by performing summary statistics at a basin-year level, averaged over the period extending from 1960 to 2009).
    • pop.rds: Population per country-year. Rendered using the 'gather_raw_data.R' script.
    • server.R: Shiny App server script.
    • terms.rds: Terms for chatterplot. Rendered using the 'gather_raw_data.R' script.
    • trade_percent_gdp.rds: Trade as a percent of GDP per country-year. Rendered using the 'gather_raw_data.R' script.
    • ui.R: Shiny App UI script.
    • water_withdraw.rds: Water withdrawal as a percentage of total water resources per country-year. Rendered using the 'gather_raw_data.R' script.
  • .gitignore
  • README.md

transboundary-water-conflict's People

Contributors

wyatthurt avatar

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.