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.

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.

Reading the literature

What method does this paper use, and who is credited where?

/papers-md-generator new

Turns a DOI or PDF into a structured papers.md block documenting the estimand, estimator, identification strategy, and named assumptions of a causal-inference paper, with verbatim-quote evidence and a misattribution flag when the bibliography credits the wrong origin (e.g., FLCI credited to Rambachan-Roth 2023 instead of Armstrong-Kolesár 2018).

For: Applied econometricians building a methods reference library git clone https://github.com/dphdame/tets-claude-skills
Read the article →

/attribution-audit-network new

Given a method family, builds a navigable citation network with three node kinds (paper, method, author) and four edge kinds (develops, uses, mis-cites, claims_to_extend_misattributes). v0.1 ships a 16-entry catalog covering honest-DiD, staggered-DiD, causal forests, and the surrogate index.

For: Researchers mapping a method family's seminal papers, current authors, and recent applications git clone https://github.com/dphdame/tets-claude-skills
Read the article →

↑ Back to top

Auditing existing work

How was this package built, or this analysis arrived at?

/replication-package-analytics new

Crawls econ replication packages and produces a panel of 12 structural-compliance metrics per package. Path A (Wayback, no auth) reaches 9/10 hand-verified openICPSR seeds; Path B (authenticated) unlocks full coverage. Descriptive measurement, not normative scoring.

For: Replication editors, meta-research, anyone reading openICPSR / AEJ archives in bulk git clone https://github.com/dphdame/tets-claude-skills
Read the article →

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 →

↑ Back to top

Building your own analysis

What's a reusable pattern we keep coming back to?

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 →

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 →

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 →

↑ Back to top

Sites and platforms

What's deployable as-is, not a snippet?

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 →

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 →

↑ Back to top

Get Research Updates

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

Subscribe for Free