Download README.md from thanatchon36/ppml-did: direct link, hf CLI and curl.
- Browser
- Download file 4.15 kB
-
https://huggingface.co/datasets/thanatchon36/ppml-did/resolve/main/README.md
- Command line
-
hf download hf://datasets/thanatchon36/ppml-did/README.md
-
curl -L -o README.md https://huggingface.co/datasets/thanatchon36/ppml-did/resolve/main/README.md
pretty_name: ppml-did replication data
license: other
license_name: mixed-upstream-licences
license_link: LICENSE.md
language:
- en
tags:
- economics
- econometrics
- difference-in-differences
- causal-inference
- poisson
- ppml
- gravity
- trade
- minimum-wage
size_categories:
- 100K<n<1M
configs:
- config_name: card_krueger
data_files: data/card_krueger.csv
- config_name: mpdta
data_files: data/mpdta.csv
- config_name: castle
data_files: data/castle.csv
- config_name: gravity_agtpa
data_files: data/gravity_agtpa.csv.gz
- config_name: trade_penppml
data_files: data/trade_penppml.csv.gz
default: true
ppml-did: replication data
Cleaned panels and every intermediate result behind the working paper The Log of Gravity Meets Parallel Trends: Poisson Pseudo-Maximum Likelihood for Difference-in-Differences with Zeros, Staggered Adoption, and Machine Learning (Thanatchon Chongmankhong, 2026).
📖 Read the paper online · 📄 PDF · 💻 Code · 🔖 DOI 10.5281/zenodo.24243851
Configs
| Config | Rows | Application | Key columns |
|---|---|---|---|
card_krueger |
410 | Card and Krueger (1994), New Jersey vs Pennsylvania fast food | store, nj, fte0, fte1 |
mpdta |
2,500 | County teen employment and minimum wages, 2003–2007 | county, year, g (cohort), emp, lemp |
castle |
550 | Castle-doctrine laws and crime, US states 2000–2010 | state, year, g, post, homicide_n, … |
gravity_agtpa |
99,981 | Structural gravity panel 1986–2006, incl. intra-national flows | exporter, importer, year, trade, rta, … |
trade_penppml |
316,317 | Bilateral exports and agreements, 1964–2016 (every 4 years) | exp, imp, time, export, fta, agreement |
from datasets import load_dataset
trade = load_dataset("thanatchon36/ppml-did", "trade_penppml", split="train")
These are the files written by applications/data_prep.py in the code repository, before the
estimation-specific sample restrictions described in the paper (e.g. dropping pairs that are never or always
treated). Rebuild them from the raw files with python3 applications/data_prep.py.
Results
results/ holds the JSON / NPY outputs of the seven Monte Carlo designs (mc1 … mc7, mc_units) and
the four applications (app_*, bootstrap draws boot_d*.npy, randomization inference castle_ri.npy).
paper/make_numbers.py turns them into every number in the paper. mc6_partial.jsonl: the first 30 MC-6
designs were recovered from the run log after the original process was interrupted (Appendix E).
Sources and licences
All inputs are public replication files. raw/SOURCES.tsv lists each URL with a SHA-256 prefix. The
cleaned files keep the licence of their source:
| Config | Source | Licence |
|---|---|---|
card_krueger |
njmin3, PoEdata R package (Hill, Griffiths and Lim) |
GPL-2 |
mpdta |
did R package (Callaway and Sant'Anna) |
GPL-3 |
castle |
Mixtape repository (Cunningham) | MIT |
gravity_agtpa |
tradepolicy R package, reproducing Yotov et al. (2016) |
CC BY 4.0 |
trade_penppml |
penppml R package (Breinlich et al. 2021) |
MIT |
The results files and the code are MIT. Please cite the original data sources as well as the paper.
Limitations
The bibliography of the paper is still being verified. The trade estimates for Thailand and ASEAN have wide intervals that include zero; the paper reads them as suggestive at best.
Citation
@misc{chongmankhong2026ppmldid,
author = {Chongmankhong, Thanatchon},
title = {The Log of Gravity Meets Parallel Trends: Poisson Pseudo-Maximum Likelihood for
Difference-in-Differences with Zeros, Staggered Adoption, and Machine Learning},
year = {2026},
doi = {10.5281/zenodo.24243851},
url = {https://github.com/thanatchon36/ppml-did}
}
