When a state raises cigarette prices, do smokers simply buy in the state next door? Using cigarette demand in 46 American states from 1963 to 1992, we measure how prices and income affect smoking at home and in neighboring states, and how habits carry over from year to year. This R tutorial comes with an interactive app that runs in your web browser.
How does credit risk spread across banks? Using quarterly data on 350 American banks from 2006 to 2014 in Stata, we model bad loans that spill over between similar banks, persist over time and respond to shared economic shocks, and show that ignoring those shocks gives misleading answers. It comes with an interactive app that runs in your web browser.
Do regions with high or low human development cluster together on the map of South America, and did those clusters shift between 2013 and 2019? This Python tutorial maps 153 regions and uses spatial statistics to test whether neighbors are more alike than chance would suggest. It comes with an interactive app that runs in your web browser.
Do poorer districts in Indonesia catch up with richer ones at the same pace everywhere? This Python tutorial uses a map-based regression that lets each relationship change from place to place, each at its own geographic scale, across 514 districts. It comes with an interactive app that runs in your web browser.
Can satellite images tell us how well each municipality in Bolivia is developing? This beginner-friendly Python tutorial trains a random forest, a machine learning model that averages many decision trees, tests it on places it never saw, and finds that the images hold real but limited information. It comes with an interactive app that runs in your web browser.