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 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.
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.
- 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.
- Young and Hsiang (2024). Mortality caused by tropical cyclones in the United States. Nature. Code available. Data Available.
- Noda et al (2024). A machine-learning pipeline for merging and georeferencing very large archives of historical aerial photographs. 2024 IEEE International Conference on Big Data.
- Burke, Ferguson, Hsiang, and Miguel. (2024) New Evidence on the Economics of Climate and Conflict. Handbook of the Economics of Conflict.
- Burke et al (2024). Are we adapting to climate change? NBER Working Paper.
- Tallis et al (2024). Mainstreaming nature in US federal policy. Science.
- Sherman et al (2023). Global High Resolution Estimates of the Human Development Index using Satellite Imagery and Machine Learning. NBER Working Paper. Code available. Data available.
- Burke et al (2023). Quantifying climate change loss and damage consistent with a social cost of greenhouse gases. NBER Working Paper.
- Depsky et al (2023). DSCIM-Coastal v1.1: an open-source modeling platform for global impacts of sea level rise. Geoscientific Model Development. Code and Data Available.
- Krasovich et al (2022). Harmonized nitrogen and phosphorus concentrations in the Mississippi/Atchafalaya River Basin from 1980 to 2018. Scientific Data. Code available.
- Carleton et al (2022). Valuing the Global Mortality Consequences of Climate Change Accounting for Adaptation Costs and Benefits. Quarterly Journal of Economics. Code Available. Data Available.
- Rolf et al (2021). A generalizable and accessible approach to machine learning with global satellite imagery. Nature Communications. Code available. Website.
- Rode et al (2021). Estimating a Social Cost of Carbon for Global Energy Consumption. Nature. Code available. Data available.
- Huang et al (2021). Using Satellite Imagery and Deep Learning to Evaluate the Impact of Anti-Poverty Programs. NBER Working Paper. Code available.
- Ilin et al (2021). Public mobility data enables COVID-19 forecasting and management at local and global scales. Scientific Reports. Code and data available by request.
- Bates et al (2021). Combined Modeling of US Fluvial, Pluvial, and Coastal Flood Hazard Under Current and Future Climates. Water Resources Research.
- Hsiang et al (2020). The effect of large-scale anti-contagion policies on the COVID-19 pandemic. Nature. Code available.
- Englander et al (2019). Property rights and the protection of global marine resources Nature Sustainability. Code available.
- Hsiang, Oliva, and Walker (2019). The Distribution of Environmental Damages. Review of Environmental Economics and Policy.
- Dingel, Meng, and Hsiang (2019). Spatial Correlation, Trade, and Inequality: Evidence from the Global Climate. NBER Working Paper.
- Duffy et al (2019). Strengthened scientific support for the Endangerment Finding for atmospheric greenhouse gases. Science.
- Druckenmiller and Hsiang (2018). Accounting for Unobservable Heterogeneity in Cross Section Using Spatial First Differences. NBER Working Paper. Code available.
- Proctor et al (2018). Estimating global agricultural effects of geoengineering using volcanic eruptions. Nature. Code and data available.
- Burke et al (2018). Higher temperatures increase suicide rates in the United States and Mexico. Nature Climate Change. Code and data available.
- Hsiang and Kopp (2018). An Economist's Guide to Climate Change Scienc. Journal of Economic Perspectives.
- Zivin, Hsiang, and Neidell (2018). Journal of the Association of Environmental and Resource Economists.
- 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.
- 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.
- Burke, Hsiang, and Miguel (2015). Global non-linear effect of temperature on economic production. Code and data avaialble. Website.
- Houser et al (2015). Economic Risks of Climate Change: An American Prospectus. Columbia University Press.
- Burke, Hsiang, and Miguel (2015). Climate and Conflict. Annual Review of Economics.
- Hsiang and Jina (2015). Geography, Depreciation, and Growth. American Economic Review.
- Hsiang and Meng (2015). Tropical Economics. American Economic Review.
- 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.
- Miguel, Hsiang, and Burke (2013). Reconciling Temperature-conflict Results in Kenya. CEGA Working Paper. Code and data available.
- Hsiang, Burke, and Miguel (2013). Quantifying the Influence of Climate on Human Conflict. Science.
- Aufhammer, Hsiang, Schlenker, and Sobel (2013). Using Weather Data and Climate Model Output in Economic Analyses of Climate Change. Review of Environmental Economics and Policy.
- 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.
- Hsiang, Meng, and Cane (2011). Civil conflicts are associated with the global climate. Nature.
- Hsiang (2010). Temperatures and cyclones strongly associated with economic production in the Caribbean and Central America. PNAS.