Difference-in-differences
Fewer than 10 packages: read the examples, not the shares.
This design across fields
| Field | packages | main clustering (of those that cluster) | winsorize / trim | checks |
|---|---|---|---|---|
| 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 (, no winsorizing) — it matches 3 of 3. Each contrast takes the second most common choice on one dimension.
- commands
att_gt,did_imputation,reghdfe- clusters by
- author-named unit; state / province
- fixed effects
- person + time; author-named unit; author-named unit + time; state / province + time
- outliers
- no winsorizing / trimming found
- missing values
- —
- checks
- pre-trend test; heterogeneity-robust estimator
Sample screens
- no conventional industry or CRSP screen found
Share of 2 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
0 of 2 packages (0%) winsorize or trim something: 0 winsorize, 0 trim, 0 by group (e.g. by year).
- none recorded
Share of the 0 packages that winsorize or trim (a package can use several cuts). Greyed: fewer than 10 packages.
Missing values
- none recorded
Share of 2 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% · 1
Of the 1 package with a model that shows the design.
Main clustering level
-
author-named unitnames the reader has no word for, commonest first:
choice_id,o_state_fips100% · 11 example in the code
- Abortion restriction laws and mobility of scientists
Strategic Management Journal 2026 · pkg 254459
did_imputation state_change personid year treatment_year, shift(-1) autosample fe(personid year) control(junior $ind_control $state_control) cluster(o_state_fip …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):did_imputation state_change personid year treatment_year, shift(-1) autosample fe(personid year) control(junior inventor NIH_grant o_carnegie_classification t_p …
- Abortion restriction laws and mobility of scientists
Strategic Management Journal 2026 · pkg 254459
Share of the 1 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
1 of 1 package absorb fixed effects in at least one estimation (absorb(), i. dummies, xtreg, fe).
Main fixed-effect set
-
person + time100% · 1
1 example in the code
- Abortion restriction laws and mobility of scientists
Strategic Management Journal 2026 · pkg 254459
reghdfe state_change 1.b_treat 1.junior $ind_control $state_control, absorb(year personid) cluster(o_state_fips)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe state_change 1.b_treat 1.junior inventor NIH_grant o_carnegie_classification t_pub_3yr_lag10 avg_cite_all_3yrpub100 ln_o_state_population ln_o_real_inco …
- Abortion restriction laws and mobility of scientists
Strategic Management Journal 2026 · pkg 254459
Share of the 1 packages that absorb fixed effects, each at the set most of its estimations use. Greyed: fewer than 10 packages.
Any estimation absorbs…
-
author-named unitnames the reader has no word for, commonest first:
assignee_state,choice_id,potential_fips100% · 11 example in the code
- Abortion restriction laws and mobility of scientists
Strategic Management Journal 2026 · pkg 254459
reghdfe chosen_state 1.d_treated 1.d_treated#c.sum_cite_pubs_w_3yr_lag1000 $choice_control, absorb(choice_id potential_fips) cluster(choice_id)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe chosen_state 1.d_treated 1.d_treated#c.sum_cite_pubs_w_3yr_lag1000 neighbor_state lived_before d_ln_state_population d_ln_real_income d_employment_rate …
- Abortion restriction laws and mobility of scientists
Strategic Management Journal 2026 · pkg 254459
-
person100% · 1
1 example in the code
- Abortion restriction laws and mobility of scientists
Strategic Management Journal 2026 · pkg 254459
reghdfe state_change 1.b_treat 1.junior $ind_control $state_control, absorb(year personid) cluster(o_state_fips)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe state_change 1.b_treat 1.junior inventor NIH_grant o_carnegie_classification t_pub_3yr_lag10 avg_cite_all_3yrpub100 ln_o_state_population ln_o_real_inco …
- Abortion restriction laws and mobility of scientists
Strategic Management Journal 2026 · pkg 254459
-
state / province100% · 1
1 example in the code
- Abortion restriction laws and mobility of scientists
Strategic Management Journal 2026 · pkg 254459
reghdfe `i' treatment $state_lag_control, absorb(year state_fips) cluster(state_fips)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe `i' treatment ln_state_population_lag ln_real_income_lag employment_rate_lag utility_app_rate_lag ln_avg_NIH_cost_state_lag r_democrat_president_lag r_b …
- Abortion restriction laws and mobility of scientists
Strategic Management Journal 2026 · pkg 254459
-
time100% · 1
1 example in the code
- Abortion restriction laws and mobility of scientists
Strategic Management Journal 2026 · pkg 254459
reghdfe state_change 1.b_treat 1.junior $ind_control $state_control, absorb(year personid) cluster(o_state_fips)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe state_change 1.b_treat 1.junior inventor NIH_grant o_carnegie_classification t_pub_3yr_lag10 avg_cite_all_3yrpub100 ln_o_state_population ln_o_real_inco …
- Abortion restriction laws and mobility of scientists
Strategic Management Journal 2026 · pkg 254459
Share of 1 packages with a model that shows the design. Greyed: fewer than 10 packages.
Estimator commands
-
att_gt100% · 1
1 example in the code
- Abortion restriction laws and mobility of scientists
Strategic Management Journal 2026 · pkg 254459
cs_est <- att_gt( yname = "state_change", tname = "year", idname = "personid", gname = "treatment_year", xformla = ~female75+professional_age, control_g …
- Abortion restriction laws and mobility of scientists
Strategic Management Journal 2026 · pkg 254459
-
did_imputation100% · 1
1 example in the code
- Abortion restriction laws and mobility of scientists
Strategic Management Journal 2026 · pkg 254459
did_imputation state_change personid year treatment_year, shift(-1) autosample fe(personid year) control(junior $ind_control $state_control) cluster(o_state_fip …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):did_imputation state_change personid year treatment_year, shift(-1) autosample fe(personid year) control(junior inventor NIH_grant o_carnegie_classification t_p …
- Abortion restriction laws and mobility of scientists
Strategic Management Journal 2026 · pkg 254459
-
reghdfe100% · 1
1 example in the code
- Abortion restriction laws and mobility of scientists
Strategic Management Journal 2026 · pkg 254459
reghdfe state_change 1.b_treat 1.junior $ind_control $state_control, absorb(year personid) cluster(o_state_fips)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe state_change 1.b_treat 1.junior inventor NIH_grant o_carnegie_classification t_pub_3yr_lag10 avg_cite_all_3yrpub100 ln_o_state_population ln_o_real_inco …
- Abortion restriction laws and mobility of scientists
Strategic Management Journal 2026 · pkg 254459
Share of 1 packages with a model that shows the design (a package runs several). Greyed: fewer than 10 packages.
Validation checks
-
pre-trend test (leads / parallel trends)50% · 1
1 example in the code
- Abortion restriction laws and mobility of scientists
Strategic Management Journal 2026 · pkg 254459
did_imputation state_change personid year treatment_year, shift(-1) autosample fe(personid year) control(junior $ind_control $state_control) cluster(o_state_fip …
- Abortion restriction laws and mobility of scientists
Strategic Management Journal 2026 · pkg 254459
-
event-time (lead/lag) dummies0% · 0
-
event-study plot0% · 0
-
heterogeneity-robust estimator (csdid, did_imputation, did_multiplegt, ...)50% · 1
1 example in the code
- Abortion restriction laws and mobility of scientists
Strategic Management Journal 2026 · pkg 254459
cs_est <- att_gt( yname = "state_change", tname = "year", idname = "personid", gname = "treatment_year", xformla = ~female75+professional_age, control_g …
- Abortion restriction laws and mobility of scientists
Strategic Management Journal 2026 · pkg 254459
-
HonestDiD sensitivity bounds0% · 0
-
multiple-testing correction (FDR, Romano-Wolf, ...)0% · 0
Share of 2 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.