← Methods
Count models
482
packages run it, of 7,459 whose models we parsed
480
papers
8,168
estimation commands
Adoption over time
Share of each publication year's packages with parsed models that run this estimator at least once (hover for counts). Grey years have fewer than 10 packages and are not a trend; package coverage is thin before ~2010, when journal data policies began.
Commands (of the 482 packages running the dedicated estimator)
ppmlhdfe253poisson127nbreg54xtpoisson31ppml23fepois19glm16xtnbreg16
Inference (of the 482 packages running the dedicated estimator)
cluster325default134robust89bootstrap18jackknife1
Clustering variables (of the 482 packages running the dedicated estimator)
id16gvkey12fips11year11county6country5pair_id5pair4
Absorbed fixed effects (of the 482 packages running the dedicated estimator)
year68id15gvkey11fyear7age6date6fips5i5
Foundational works
What the papers whose code runs this estimator cite most (share of those papers citing each).
- The Log Of Gravity — J. M. C. Santos Silva; Silvana Tenreyro (2006), Review of Economics and Statistics77 · 16%
- Technology, Geography, And Trade — Jonathan Eaton; Samuel Kortum (2002), Econometrica45 · 9%
- Gravity Equations: Workhorse,Toolkit, and Cookbook — Head, Keith; Mayer, Thierry (2014), Handbook of International Economics39 · 8%
- Count (and count-like) data in finance — Jonathan B. Cohn; Zack Liu; Malcolm I. Wardlaw (2022), Journal of Financial Economics36 · 7%
- Difference-in-Differences with multiple time periods — Brantly Callaway; Pedro H.C. Sant’Anna (2021), Journal of Econometrics34 · 7%
- Fast Poisson estimation with high-dimensional fixed effects — Sergio Correia; Paulo Guimarães; Tom Zylkin (2020), The Stata Journal Promoting communications on statistics and Stata33 · 7%
- Difference-in-differences with variation in treatment timing — Andrew Goodman-Bacon (2021), Journal of Econometrics28 · 6%
- Revisiting Event-Study Designs: Robust and Efficient Estimation — Kirill Borusyak; Xavier Jaravel; Jann Spiess (2024), Review of Economic Studies28 · 6%
- Logs With Zeros? Some Problems And Solutions ⋆] — Jiafeng Chen; Jonathan Roth (2024), Quarterly Journal of Economics27 · 6%
- Two-Way Fixed Effects Estimators with Heterogeneous Treatment Effects — Clément de Chaisemartin; Xavier D’Haultfœuille (2020), American Economic Review26 · 5%
- New Trade Models, Same Old Gains? — Costas Arkolakis; Arnaud Costinot; Andrés Rodrı́guez-Clare (2012), American Economic Review26 · 5%
- Gravity with Gravitas: A Solution to the Border Puzzle — James E Anderson; Eric van Wincoop (2003), American Economic Review24 · 5%
Recent examples, straight from the code
What Problem Do Intermediaries Solve? Evidence From Real Estate Markets Review of Financial Studies 2026 · Replication_Package_code_RFS_RedX.do:4958 · pkg 134
eststo: ppmlhdfe agentchar_listcount_past iqip if num==1 & zillowmatched==1 & product<. & agent_multipleagents==0 & agent_farsmalllisting_daydiff>0, cluster(county cw) absorb(cm#county totnew)
ESG Shocks in Global Supply Chains Review of Financial Studies 2026 · BSZ_Tables_Mainpaper.do:42 · pkg 266
qui ppmlhdfe trade4 treatpost post $x ,ab(pair indyear case ) cl(case#shppanjivaid)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):
qui ppmlhdfe trade4 treatpost post size mtb lev rd invest cash ,ab(pair indyear case ) cl(case#shppanjivaid)
Are Major Customers Friends or Masters? Evidence from Customer Fraud Revelations Review of Corporate Finance Studies 2026 · replication_code_pseudo_data_main.do:102 · pkg 7301
ppmlhdfe numpat treated_post, abs(tc ic) cluster(industry_code)
Competition and Certification: Theory and Evidence from the Audit Market Review of Corporate Finance Studies 2026 · RCFS_Replication.do:186 · pkg 7319
eststo: ppmlhdfe num_fincov treat_post treat post lat roa tang lever mb cf_vol auditfee zscore loan_size lmaturity i_syndicate, abs(ind_yr msa) cluster(msa) keepsing
Trust and Innovation Within the Firm: Evidence from Matched CEO-Firm Data Quarterly Journal of Economics 2026 · Code_Trust_Innovation_Appendix_tables_figures.do:169 · pkg 7584
eststo col8: /// poisson
xtpoisson f1allpat trust_sd ${firm} ${ceo} i.year if ${sample}, fe vce(robust)As we read it — macros filled in / loop expanded (an interpretation, not the file's text):
eststo col8: xtpoisson f1allpat trust_sd firmage firmage2 gender age age2 yrinco i.education i.year if year < 2012 & !nonUS, fe vce(robust)
Ideas Have Consequences: The Impact of Law and Economics on American Justice Quarterly Journal of Economics 2026 · district_all_wo_options_program.do:360 · pkg 7656
eststo slength_mw5_base: ppmlhdfe slength manne_post if mw5 == 1, absorb($basefe) cluster(judgefe) noconstant
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):
eststo slength_mw5_base: ppmlhdfe slength manne_post if mw5 == 1, absorb(districtyear judgefe) cluster(judgefe) noconstant
Do Mergers and Acquisitions Improve Efficiency? Evidence from Power Plants Journal of Political Economy 2026 · app_poisson_table2_load_others.R:165 · pkg 7839
fixed_pois3 <- fepois(fml, temp, cluster = clus) # <- key change
Evaluating the Impact of Urban Transit Infrastructure: Evidence from Bogotá’s TransMilenio American Economic Review 2026 · s05_CommuteParams.do:142 · pkg 11694
ppmlhdfe L_od lnd, a(ij year#loc_d year#loc_o year#c.tot_crimes year#c.logV year#c.PrimRoad_share) cluster(ij)
The Price of War American Economic Review 2026 · trade_gravity.do:149 · pkg 11750
eststo: ppmlhdfe trade_value, d
Conservation Priorities and Environmental Offsets: Markets for Florida Wetlands American Economic Review 2026 · bayou_d4_est_floods_Pynchon.R:10 · pkg 11752
summary(olf[[1]] <- glm(round(avg_pre95_structure_claims_2016_2020) ~ log(wet_to_dev) + asinh(bank_area) + factor(wmd) + (abs(dev/area) + abs(dev_high/dev)) + other_to_dev + abs(other_to_dev^2) ,data=subset(bayou_long_fgz,wet_to_dev>0 & !is.na(med_income_1995)),family="quasipoisson"))
Do Shared Auditors Facilitate Follow‐on Innovation? Journal of Accounting Research 2026 · 4_empirical_analysis.do:264 · pkg 12753
ppmlhdfe citations I_shared_office $Control1, absorb(permno1##year permno2##year) cluster(permno1 permno2)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):
ppmlhdfe citations I_shared_office CommonAnalyst CommonAlliance CommonInventor CommonOwnership TechSimilarity RelativeAnalyst RelativeSize RelativePatentStock RelativeCitation, absorb(permno1##year permno2##year) cluster(permno1 permno2)
The Determinants of ESG Ratings: Rater Ownership Matters Journal of Accounting Research 2026 · 18.ESG risk incidents.do:30 · pkg 12763
poisson esg_incident sister1 indyrsic2dummy*, cluster(gvkey)