← All designs What this design is used to study →

Difference-in-differences

2 thin
packages in this design and field (the same count as the methods and outcomes pages)
1
with a model that shows the design itself (the models the estimation choices below are read from)
—
median sample years, read as each package page reads its period (0 packages set one in code)

Fewer than 10 packages: read the examples, not the shares.

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 (, no winsorizing) — it matches 3 of 3. Each contrast takes the second most common choice on one dimension.

Typical
Abortion restriction laws and mobility of scientists
Beril Yalcinkaya; Waverly W. Ding · Strategic Management Journal 2026 · package 254459 · 57 estimations read
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_fips
    100% · 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 …

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 + time
    100% · 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 …

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_fips
    100% · 1
    1 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 …
  • person
    100% · 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 …
  • state / province
    100% · 1
    1 example in the code
  • time
    100% · 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 …

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

Estimator commands

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

Validation checks

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.