exp string | imp string | time int64 | export float64 | fta int64 | agreement string |
|---|---|---|---|---|---|
ABW | AIA | 1,988 | 0 | 0 | null |
ABW | AIA | 1,996 | 0 | 0 | null |
ABW | AIA | 2,012 | 0 | 0 | null |
ABW | AIA | 2,016 | 0 | 0 | null |
ABW | ANT | 1,988 | 13,087,119 | 0 | null |
ABW | ANT | 1,996 | 2,371,576 | 0 | null |
ABW | ARE | 1,988 | 0 | 0 | null |
ABW | ARE | 1,996 | 0 | 0 | null |
ABW | ARE | 2,012 | 0 | 0 | null |
ABW | ARE | 2,016 | 0 | 0 | null |
ABW | ARG | 1,988 | 3,351 | 0 | null |
ABW | ARG | 1,996 | 0 | 0 | null |
ABW | ARG | 2,012 | 50,642 | 0 | null |
ABW | ARG | 2,016 | 0 | 0 | null |
ABW | ATG | 1,988 | 558 | 0 | null |
ABW | ATG | 1,996 | 132,070 | 0 | null |
ABW | ATG | 2,012 | 0 | 0 | null |
ABW | ATG | 2,016 | 0 | 0 | null |
ABW | AUS | 1,988 | 0 | 0 | null |
ABW | AUS | 1,996 | 1,129 | 0 | null |
ABW | AUS | 2,012 | 0 | 0 | null |
ABW | AUS | 2,016 | 0 | 0 | null |
ABW | AUT | 1,988 | 0 | 0 | null |
ABW | AUT | 1,996 | 0 | 1 | EU Overseas Countries and Territories (OCT) |
ABW | AUT | 2,012 | 0 | 1 | EU Overseas Countries and Territories (OCT) |
ABW | AUT | 2,016 | 0 | 1 | EU Overseas Countries and Territories (OCT) |
ABW | BHS | 1,988 | 1,117 | 0 | null |
ABW | BHS | 1,996 | 587 | 0 | null |
ABW | BHS | 2,012 | 830,249 | 0 | null |
ABW | BHS | 2,016 | 0 | 0 | null |
ABW | BLX | 1,988 | 531,284 | 1 | EU Overseas Countries and Territories (OCT) |
ABW | BLX | 1,996 | 45,197 | 1 | EU Overseas Countries and Territories (OCT) |
ABW | BLX | 2,012 | 222,931 | 1 | EU Overseas Countries and Territories (OCT) |
ABW | BLX | 2,016 | 68,574 | 1 | EU Overseas Countries and Territories (OCT) |
ABW | BLZ | 1,988 | 0 | 0 | null |
ABW | BLZ | 1,996 | 0 | 0 | null |
ABW | BLZ | 2,012 | 0 | 0 | null |
ABW | BLZ | 2,016 | 0 | 0 | null |
ABW | BMU | 1,988 | 29,607 | 0 | null |
ABW | BMU | 1,996 | 0 | 0 | null |
ABW | BMU | 2,012 | 0 | 0 | null |
ABW | BMU | 2,016 | 0 | 0 | null |
ABW | BOL | 1,988 | 0 | 0 | null |
ABW | BOL | 1,996 | 4,264 | 0 | null |
ABW | BOL | 2,012 | 0 | 0 | null |
ABW | BOL | 2,016 | 0 | 0 | null |
ABW | BRA | 1,988 | 0 | 0 | null |
ABW | BRA | 1,996 | 0 | 0 | null |
ABW | BRA | 2,012 | 294,829 | 0 | null |
ABW | BRA | 2,016 | 0 | 0 | null |
ABW | BRB | 1,988 | 0 | 0 | null |
ABW | BRB | 1,996 | 28,800 | 0 | null |
ABW | BRB | 2,012 | 0 | 0 | null |
ABW | BRB | 2,016 | 0 | 0 | null |
ABW | BUN | 1,988 | 31,838 | 0 | null |
ABW | BUN | 1,996 | 0 | 0 | null |
ABW | BUN | 2,012 | 0 | 0 | null |
ABW | BUN | 2,016 | 0 | 0 | null |
ABW | CAN | 1,988 | 0 | 0 | null |
ABW | CAN | 1,996 | 20,874 | 0 | null |
ABW | CAN | 2,012 | 158,613 | 0 | null |
ABW | CAN | 2,016 | 0 | 0 | null |
ABW | CHE | 1,988 | 3,910 | 0 | null |
ABW | CHE | 1,996 | 56,151 | 0 | null |
ABW | CHE | 2,012 | 80,639 | 0 | null |
ABW | CHE | 2,016 | 150,838 | 0 | null |
ABW | CHL | 1,988 | 0 | 0 | null |
ABW | CHL | 1,996 | 1,333 | 0 | null |
ABW | CHL | 2,012 | 137 | 0 | null |
ABW | CHL | 2,016 | 0 | 0 | null |
ABW | CHN | 1,988 | 0 | 0 | null |
ABW | CHN | 1,996 | 0 | 0 | null |
ABW | CHN | 2,012 | 526,021 | 0 | null |
ABW | CHN | 2,016 | 780,577 | 0 | null |
ABW | COL | 1,988 | 663,669 | 0 | null |
ABW | COL | 1,996 | 1,180,944 | 0 | null |
ABW | COL | 2,012 | 68,108,824 | 0 | null |
ABW | COL | 2,016 | 22,653,276 | 0 | null |
ABW | CRI | 1,988 | 558 | 0 | null |
ABW | CRI | 1,996 | 0 | 0 | null |
ABW | CRI | 2,012 | 49,540 | 0 | null |
ABW | CRI | 2,016 | 0 | 0 | null |
ABW | CUB | 1,988 | 0 | 0 | null |
ABW | CUB | 1,996 | 0 | 0 | null |
ABW | CUB | 2,012 | 0 | 0 | null |
ABW | CUB | 2,016 | 0 | 0 | null |
ABW | CUW | 2,012 | 6,626,217 | 0 | null |
ABW | CUW | 2,016 | 5,370,065 | 0 | null |
ABW | CYM | 1,988 | 2,234 | 0 | null |
ABW | CYM | 1,996 | 0 | 0 | null |
ABW | CYM | 2,012 | 0 | 0 | null |
ABW | CYM | 2,016 | 0 | 0 | null |
ABW | CYP | 1,988 | 0 | 0 | null |
ABW | CYP | 1,996 | 0 | 0 | null |
ABW | CYP | 2,012 | 0 | 1 | EU Overseas Countries and Territories (OCT) |
ABW | CYP | 2,016 | 0 | 1 | EU Overseas Countries and Territories (OCT) |
ABW | DEU | 1,988 | 5,585 | 1 | EU Overseas Countries and Territories (OCT) |
ABW | DEU | 1,996 | 115,828 | 1 | EU Overseas Countries and Territories (OCT) |
ABW | DEU | 2,012 | 1,629 | 1 | EU Overseas Countries and Territories (OCT) |
ABW | DEU | 2,016 | 0 | 1 | EU Overseas Countries and Territories (OCT) |
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}
}
- Downloads last month
- 92
