Tools & Code

Open-source tools that came out of our applied economics research. Each one is documented for reuse, ranging from provenance audits of AI-assisted analyses to BigQuery demand-segmentation patterns we keep reaching for.

Start here

Start Here: AI for Applied Researchers

A five-step sequence for putting an AI coding agent into a real applied economics study, from the first literature scan to the replication package, grounded in published analyses with open code.

Start the guide →

The work below tends to start the same way: a research thread runs into the same plumbing problem twice, and we end up extracting the plumbing into something we can reuse. Some of these tools support the analyses we publish here; others scaffold the public-facing infrastructure we share with collaborators.

Everything is on GitHub. Where a tool is small enough to drop into a one-line install, we note the command; for larger projects, the repo README has the setup walk-through.

Looking for the smaller artifacts? Prompt and checklist templates extracted from our methodology articles live at → Browse templates.

forking-paths

Provenance audit for AI-assisted empirical research. Reads Claude Code session logs and surfaces the decision graph, so we can self-audit our own analysis path and give referees a transparent record of what was tried and what was kept.

For: Researchers running AI-assisted analyses git clone https://github.com/dphdame/forking-paths
Code on GitHub →

tooearlytosay-analysis

Replication materials for research published on Too Early To Say. Where an article shows a chart or a result, the underlying script, data pull, and notebook live here, organized by topic.

For: Replicators, peer reviewers, and curious readers git clone https://github.com/dphdame/tooearlytosay-analysis
Code on GitHub →

caphe-website

Full-stack platform for the California Association of Public Health Economists. 37 interactive methods labs, a Medi-Cal Access Explorer, and a Public Health ROI Calculator. Node and Express on Heroku, Supabase with row-level security on the back end.

For: Public health analysts and teaching faculty git clone https://github.com/dphdame/caphe-website
Code on GitHub →

bigquery-census-demand-segmentation

Geographic demand segmentation for subscription pricing using Census ACS via BigQuery. A walk-through of CTEs, window functions, QUALIFY, and ROLLUP, written to run inside the BigQuery free tier so anyone can fork and follow along.

For: Analysts learning BigQuery patterns on public data git clone https://github.com/dphdame/bigquery-census-demand-segmentation
Code on GitHub →

vrt-testing

Centralized visual regression testing across the websites we maintain, built on Playwright. Captures baseline screenshots, flags layout drift on each deploy, and lets us share one testing pipeline across several properties.

For: Developers maintaining multiple static sites git clone https://github.com/dphdame/vrt-testing
Code on GitHub →

foodsecurity_mobility

Analysis code linking grocery access and mobility data for the food security research thread. Includes the data-prep scripts behind several of our food-access pieces and the spatial joins we use to characterize mobility deserts.

For: Food security and transit-equity researchers git clone https://github.com/dphdame/foodsecurity_mobility
Code on GitHub →

A note on reuse

Most of these started as one-off scripts inside a project before becoming reusable enough to publish. If something is helpful, please fork it, file an issue, or open a PR. We treat the documentation gaps in our own tools the same way we treat them in published research: as places to come back to once we understand the use case better.

If we have built something that would help our work and is not yet here, let us know at [email protected] and we will look at extracting it.

Get Research Updates

New analysis delivered to your inbox. Policy-relevant findings with methodology. No spam, unsubscribe anytime.

Subscribe for Free