Skip to content

Global Policy Lab GitHub

Note that while many Global Policy Lab (GPL) repositories are hosted under our organization account, there are also many repositories that are hosted under individual accounts. For this reason, code for specific projects is hyperlinked below. For questions, contact Luke Sherman via lsherm@stanford.edu.

We divide our code into two sections: (1) Code-based tools and packages for general and (2) Replication code for research projects. The former is designed to be continuously improved and updated, while the latter is not.

Code-based tools and packages

Code-based tools and packages are designed for general use in the research community. We encourage researchers using our code-based tools and packages to make contributions via pull request. For questions, contact Luke Sherman via lsherm@stanford.edu.

  • SFD - R code for for computing the spatial first differences (SFD) estimator. SFD is a research design that exploits the spatial structure of the data to address unobservable heterogeneity in cross section. Code available. See also Druckenmiller and Hsiang, 2018.

Replication code for research projects

Research projects are listed below. If publications are associated with replication code and/or data those links will be included below. Code will not typically be updated following the publication of the corresponding research paper.

2025

  • Hsiang (2025). The Global Economic Impact of Climate Change: An Empirical Perspective. NBER Working Paper.
  • Hultgren et al (2025). Impacts of climate change on global agriculture accounting for adaptation. Nature. Data available.
  • Bearpark, Hogan, and Hsiang (2025). Data anomalies and the economic commitment of climate change. Nature. Code Available.
  • Lee, Wilson, and Hsiang (2025). Empirically Distinguishing Health Impacts of Transboundary and Domestic Air Pollution in Mixture. NBER Working Paper.
  • Almås et al (2025). Destructive Behaviour, Judgement and Economic Decision-making under Thermal Stress. The Economic Journal.

2024

2023

2022

2021

2020

  • Hsiang et al (2020). The effect of large-scale anti-contagion policies on the COVID-19 pandemic. Nature. Code available.

2019

2018

2017

  • Bolliger et al (2017). Ground Control to Major Tom: the importance of field surveys in remotely sensed data analysis. arXiV.
  • Hsiang et al (2017). Estimating economic damage from climate change in the United States. Science.
  • Deryugina and Hsiang (2017). The Marginal Product of Climate. NBER Working Paper.

2016

  • Carleton and Hsiang (2016). Social and economic impacts of climate. Science.
  • Hsiang and Sekar (2016). Does Legalization Reduce Black Market Activity? Evidence from a Global Ivory Experiment and Elephant Poaching Data. NBER Working Paper.
  • Hsiang and Sobel (2016). Potentially Extreme Population Displacement and Concentration in the Tropics Under Non-Extreme Warming. Scientific Reports.
  • Carleton, Hsiang, and Burke (2016). Conflict in a Changing Climate. The European Physical Journal.
  • Hsiang (2016). Climate Econometrics. Annual Review of Resource Economics.
  • Burke et al (2016). Opportunities for advances in climate change economics. Science.

2015

2014

  • Hsiang and Jina (2014). The Causal Effect of Environmental Catastrophe on Long-Run Economic Growth: Evidence From 6,700 Cyclones. NBER Working Paper.
  • Deryugina and Hsiang (2014). Does the Environment Still Matter? Daily Temperature and Income in the United States. NBER Working Paper.
  • Hsiang, Burke, and Miguel (2014). Reconciling climate-conflict meta-analyses: reply to Buhaug et al. Climatic Change.
  • Bohra-Mishra, Oppenheimer, and Hsiang (2014). Nonlinear permanent migration response to climatic variations but minimal response to disasters. PNAS.
  • Hsiang and Burke (2014). Climate, conflict, and social stability: what does the evidence say? Climatic Change.
  • Hsiang and Meng (2014). Reconciling disagreement over climate–conflict results in Africa. PNAS.

2013

2012

  • Anttila-Hughes and Hsiang (2012). Destruction, Disinvestment, and Death: Economic and Human Losses Following Environmental Disaster. SSRN.
  • Hsiang (2012). Visually-Weighted Regression. SSRN.
  • Hsiang and Narita (2012). Adaptation to Cyclone Risk: Evidence from the Global Cross-Section. Climate Change Economics.

2011

  • Hsiang, Meng, and Cane (2011). Civil conflicts are associated with the global climate. Nature.

2010

  • Hsiang (2010). Temperatures and cyclones strongly associated with economic production in the Caribbean and Central America. PNAS.

Popular repositories Loading

  1. mosaiks-paper mosaiks-paper Public

    Code and data to support our paper

    Jupyter Notebook 82 26

  2. hdi_downscaling_mosaiks hdi_downscaling_mosaiks Public

    Jupyter Notebook 18 5

  3. gpl-covid gpl-covid Public

    Repo for code and small datasets related to Global Policy Lab's COVID-19 policy analysis. Read and share the acompanying article here:

    Jupyter Notebook 16 13

  4. afghanistan-internal-displacement afghanistan-internal-displacement Public

    R 2

  5. young_hsiang_tc_mortality young_hsiang_tc_mortality Public

    Stata 2 2

  6. gpl-covid-mobility gpl-covid-mobility Public

    Repo for code related to COVID-19 policy analysis carried out by UC Berkeley GPL / DIDL research labs

    Jupyter Notebook 1

Repositories

Showing 10 of 12 repositories

Top languages

Loading…

Most used topics

Loading…