← All designs What this design is used to study →

Difference-in-differences

All fields Finance Accounting Economics Other fields
23
packages in this design and field (the same count as the methods and outcomes pages)
17
with a model that shows the design itself (the models the estimation choices below are read from)
2005–2018
median sample years, read as each package page reads its period (18 packages set one in code: 18 a start, 15 an end)

This design across fields

Fieldpackages main clustering (of those that cluster)winsorize / trimchecks
All fields 498 author-named unit 36%; unspecified id (id, i, group...) 12%; county / city / district 12%; state / province 11% (n=385) 30% pre-trend test 27%; event-time 5%
Finance 80 firm 20%; author-named unit 14%; unspecified id (id, i, group...) 12%; state / province 11% (n=66) 61% pre-trend test 10%; event-time 9%
Accounting 23 author-named unit 18%; firm 18%; industry 12%; industry × time 12% (n=17) 74% pre-trend test 0%; event-time 4%
Economics 393 author-named unit 42%; county / city / district 15%; unspecified id (id, i, group...) 13%; state / province 11% (n=301) 21% pre-trend test 31%; event-time 5%
Other fields 2 thin author-named unit 100% (n=1) 0% pre-trend test 50%; event-time 0%

The typical package, and three that differ

Typical = the package that makes the most of this cell's modal choices (reghdfe, clustered by firm, firm + industry × time fixed effects, winsorizes, drops missing rows) — it matches 6 of 6. Each contrast takes the second most common choice on one dimension.

Typical
The Disciplinary Effect of Social Media: Evidence from Firms' Responses to Glassdoor Reviews
SVENJA DUBE; CHENQI ZHU · Journal of Accounting Research 2021 · package 12619 · 54 estimations read
commands
reghdfe
clusters by
firm
fixed effects
firm + industry × time; firm + time; firm × time + time; firm × time + industry × time
outliers
winsorize 1/99
missing values
replace missing with another value (imputation); drop rows with missing values; replace missing with zero (imputation)
sample years
2003–2013 (as on the package page)
checks
none of the design's checks found
Contrast
Payment Practices Transparency and Customer‐Supplier Dynamics
JODY GREWAL; ADITYA MOHAN; GERARDO PÉREZ‐CAVAZOS · Journal of Accounting Research 2024 · package 12678 · 11 estimations read
clusters by industry (modal: firm)
commands
reghdfe
clusters by
industry
fixed effects
unspecified id (id, i, group...) + time
outliers
winsorize 1/99
missing values
drop rows with missing values; replace missing with zero (imputation)
sample years
2011–2020 (as on the package page)
checks
none of the design's checks found
Contrast
Does Private Country-by-Country Reporting Deter Tax Avoidance and Income Shifting? Evidence from BEPS Action Item 13
Preetika Joshi · Journal of Accounting Research 2020 · package 12581 · 11 estimations read
absorbs firm + time (modal: firm + industry × time)
commands
reghdfe
clusters by
firm; author-named unit
fixed effects
firm + time; author-named unit + time
outliers
no winsorizing / trimming found
missing values
drop rows with missing values
checks
none of the design's checks found
Contrast
Reporting Regulation and Private Firms' Bank Credit
Antonio Moreta · Journal of Accounting Research 2026 · package 12762 · 2 estimations read
estimates with reg (modal: reghdfe)
commands
reg
clusters by
unspecified id (id, i, group...)
fixed effects
industry × time
outliers
winsorize 1/99; winsorize 2.5/99
missing values
replace missing with zero (imputation); drop rows with missing values; replace missing with another value (imputation)
sample years
2016–2019 (as on the package page)
checks
none of the design's checks found

Sample screens

Share of 23 packages in the cell. Greyed: fewer than 10 packages.

Industry screens are read into whole SIC/NAICS sectors (Samples page); CRSP screens are share codes 10/11, exchange codes 1–3 and a price cut of $10 or less in a package that reads CRSP / Compustat / TAQ.

Outliers

17 of 23 packages (74%) winsorize or trim something: 17 winsorize, 1 trim, 7 by group (e.g. by year).

Share of the 17 packages that winsorize or trim (a package can use several cuts). Greyed: fewer than 10 packages.

Missing values

Share of 23 packages in the cell (a package can do several). Greyed: fewer than 10 packages.

Fills count only imputation of a measured variable (R&D set to 0 after a merge), not a dummy being completed.

Standard errors

  • clusters in at least one estimation100% · 17

Of the 17 packages with a model that shows the design.

Main clustering level

Share of the 17 packages that cluster: each package counted once, at the level most of its estimations use. Greyed: fewer than 10 packages.

Levels are read from variable names (gvkey, permno → firm; fips, county → county). "Author-named unit" is a name that does not reveal its level (fac_id, route, provider); "unspecified id" is id, i, group — never guessed.

Fixed effects

17 of 17 packages absorb fixed effects in at least one estimation (absorb(), i. dummies, xtreg, fe).

Main fixed-effect set

Share of the 17 packages that absorb fixed effects, each at the set most of its estimations use. Greyed: fewer than 10 packages.

Any estimation absorbs…

Share of 17 packages with a model that shows the design. Greyed: fewer than 10 packages.

Estimator commands

Share of 17 packages with a model that shows the design (a package runs several). Greyed: fewer than 10 packages.

Validation checks

Share of 23 packages in the cell. A check run under a macro or in a file we could not read is missed, so these are lower bounds. Greyed: fewer than 10 packages.

The heterogeneity-robust share is partly circular — those estimators also put a package into this design. Placebo tests are not shown: the detector read 7 of 10 correct.