← Methods The matching recipe →

Matching

309
packages in the design · 306 papers
295
of them have a model that shows the design itself — the models read below
293
run a dedicated matching estimator (1,904 estimations)
How the design is counted — the same count on the recipe, outcomes and methods pages
  • The universe is every replication package our extractors have read (code_model_design) that is linked to a live paper by a confirmed link; the field is the linked paper's.
  • A package is in a design when (a) our extractor found the design's identification pattern on a line of code it runs (not a path, a folder macro, an export or an install line), or (b) it runs a model of the design's own estimator family. An ivreg2 / ivreghdfe call with no (endog = z) group counts for neither: it is OLS with robust or HAC errors, not IV.
  • Panel fixed effects is the rest: a fixed-effects estimation and none of the other designs. A package can be in several designs (not panel FE).
  • A model is an estimation OF the design only when the model itself carries the design's signature; the recipe's estimation choices, the outcomes, the instruments and every example are read from those models.
  • This design's signature in a model: a matching estimator (psmatch2, teffects, cem, MatchIt ...) or a regression weighted by / restricted to the match.
  • 296 packages declare the design in code; 293 are in it by their estimator (a package can be both).

Adoption over time — the dedicated estimator

2007: 1 of 5 packages (20.0%) — fewer than 10 packages that year 2011: 2 of 77 packages (2.6%) 2013: 3 of 107 packages (2.8%) 2014: 1 of 107 packages (0.9%) 2015: 4 of 156 packages (2.6%) 2015 2016: 4 of 105 packages (3.8%) 2017: 4 of 121 packages (3.3%) 2018: 8 of 151 packages (5.3%) 2019: 11 of 253 packages (4.3%) 2020: 5 of 246 packages (2.0%) 2020 2021: 6 of 392 packages (1.5%) 2022: 32 of 775 packages (4.1%) 2023: 32 of 909 packages (3.5%) 2024: 51 of 1,136 packages (4.5%) 2025: 61 of 1,322 packages (4.6%) 2025 2026: 68 of 1,459 packages (4.7%)

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.

Validation practice

Of the 309 packages in the design, how many run each standard check (read from the code; the same checks and numbers as the recipe). 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.

balance table / standardised differences
4% · 12
multiple-testing correction (FDR, Romano-Wolf, ...)
5% · 16

What it is used to study

The dependent variables of this design's estimations, read from the model roles we read from the code. Of the 309 packages in the design, 295 have a model that shows the design itself, and 173 of those have a readable outcome (2,505 models; for 33 packages some outcome is read only through a loop's expansion). Shares are of those 173 packages, one count per package; greyed rows rest on fewer than 10. An outcome that is a taxonomy measure's variable in the same package is shown as the measure; other names are grouped by what they name. Compare every design →

How this is counted
  • The unit is the package: a package counts once for an outcome, measure or instrument type however many of its models carry it; the model count is shown second.
  • A design's packages are the ONE design membership every page shows (identification fact on a line of code, or the design's own estimator). Its models are the ones that carry the design's signature in the model itself — a DiD estimator or a treatment × post term, event-time dummies or an abnormal-return outcome, an excluded instrument, an RD estimator or a bandwidth around a cutoff, a matching estimator or matched weights. A package with none of those models is counted in the design but has no outcome here.
  • Roles are read from each model's literal row. Only where a literal role still holds a macro (`y', $dep) are the loop-expanded rows written on the same line read for that role; an expanded row whose literal row is resolved adds nothing, and an unresolved role with no expansion is dropped.
  • An outcome is a taxonomy measure when the dependent variable is that measure's variable in the same package; otherwise it is grouped by its name (a word list, field-aware for short names like car, q, ret); otherwise it is shown as the bare variable.
  • Instruments are the EXCLUDED ones: a term also among the model's regressors is an included control. Types are read from the name (and L. / lag for lagged values). Where the name says nothing (`z`, `shock`, `iv1`), the instrument is traced to the statement in the package that builds it, up to three statements back, and typed by that statement's shape — (total − own)/(n − 1) a leave-out mean, L.x or x[_n-1] a lag, predict after a model a predicted value, a by-group sum of share × shock a shift-share, geodist a distance — or by the name of the one variable it copies or transforms. Products, thresholds and aggregates of other variables are not read, and an instrument nothing reliable types stays untyped. Each such example shows the statement, linked to its line.

Finance — 45 of 74 packages have a readable outcome

Economics — 120 of 211 packages have a readable outcome

Outcomes that are taxonomy measures (all fields: the package computes the measure and estimates it as the outcome)

Commonest outcome names no group reads (all fields, packages): blue (2), other (2), out1 (2), year (2).

Commands (of the 293 packages running the dedicated estimator)

  • psmatch2160
  • teffects49
  • cem39
  • matchit26
  • nnmatch18
  • match9
  • kmatch7
  • etregress6

Inference (of the 293 packages running the dedicated estimator)

  • default269
  • robust16
  • cluster10
  • bootstrap5

Clustering variables (of the 293 packages running the dedicated estimator)

  • rezfe_num2
  • dealid1
  • district_no1
  • fips_mp_o1
  • lbnr1
  • mom_id1
  • pcprev1
  • state_fips1

Absorbed fixed effects (of the 293 packages running the dedicated estimator)

  • none recorded

Foundational works

What the papers whose code runs this estimator cite most (share of those papers citing each).

Recent examples, straight from the code

One model per package, from the most recent papers — each one shows the design itself (why is given beside it).

Collateral Effects: The Role of FinTech in Small Business Lending Review of Financial Studies 2026 · replication_package_codes_3_PSM_fin_bank.do:105 · pkg 205 matching estimator
capture noisily psmatch2 p2p loan0 loan1 loan2 loan3 loan4 loan5 $xlist ///
if cell == `i', out(loan6) noreplacement common
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):
capture noisily psmatch2 p2p loan0 loan1 loan2 loan3 loan4 loan5 outsideloan i.outloanyear i.codummy ageatevent i.rating r3filled i.m_r3filled r13filled i.m_r13filled r_collateral_filled i.m_r_collateral_filled if cell == `i', out(loan6) noreplacement common
Firm-Level Labor Shortage Exposure Review of Financial Studies 2026 · vocab.txt:30332 · pkg 303 matching estimator
cem
Sweeping up Gangs: The Effects of Tough-on-Crime Policies from a Network Approach American Economic Journal: Economic Policy 2026 · 1.createsareasall.do:83 · pkg 11714 matching estimator
psmatch2 treat r_tot_pre r_person_pre pobl_pre american_pre if pdate==207, n(6)
Corporate Litigation, Governance, and the Role of Law Firms Journal of Accounting Research 2026 · 03a - tests_realdata.do:1380 · pkg 12758 matching estimator
capture psmatch2 star10 $controls $nonmisscontrols, n(5) common
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):
capture psmatch2 star10 lnat_r_w sale_growth_w liabilities_assets_w bm_w return1_w return_std_dev1_w return_skewness1_w turnover1_w lnwebsite_size_w lnyears_since_inc_w lnnlawyers_w, n(5) common
The Determinants of ESG Ratings: Rater Ownership Matters Journal of Accounting Research 2026 · 06.Matching.do:22 · pkg 12763 matching estimator
psmatch2 sister log_assets btm age leverage sales roa ret capex rnd rnd_dummy dividends cash_holding ad ior log_analyst_coverage Blue  indyrsic2, n(1) com logit
AI Democratization and Trading Inequality Journal of Accounting Research 2026 · TABLES_CODE.do:999 · pkg 12765 matching estimator
qui psmatch2  ttchg_med_anh_so_41yl absstdcz_sue1  beta3capm_n1 bm_n1 mve_n1 mom12m_n1 i.dq, noreplacement neighbor(1) caliper(0.1)
A Tale of Two Banks: When Credit Loss Models Meet Economic Crises Journal of Accounting Research 2026 · table7.do:27 · pkg 12772 matching estimator
psmatch2 bank_treated, pscore(pscore) neighbor(1) ties common caliper(0.05)
Do Engagement Quality Reviewers’ Workplace Ties with Engagement Partners Influence Audit Quality? Journal of Accounting Research 2026 · 11_regression.do:130 · pkg 12788 matching estimator
eststo:qui etregress ABSDA $controls i.ind i.year i.InstitutionID, treat($x = SHOCK_PROMOTE $controls2 i.ind i.year i.fensuo) twostep first
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):
eststo:qui etregress ABSDA WORKTIE_ENG1_ENG2 ALUM_TIE SIZE LEV ROA LOSS BM CFO SUBS AGE TURNOVER SOE TENURE SIZE_AF DSPEC_ENG DSPEC_EQR SAMEGEN CI LOCAL COREVIEW i.ind i.year i.InstitutionID, treat(WORKTIE = SHOCK_PROMOTE WORKTIE_ENG1_ENG2 ALUM_TIE SIZE LEV ROA LOSS BM CFO SUBS AGE TURNOVER SOE TENURE SIZE_AF DSPEC_ENG DSPEC_EQR SAMEGEN CI LOCAL INV REC LAGFINIRREG PRIORCPA_CANDIDATE GAPSPEC_CANDI
Baby Bumps in the Road: The Impact of Parenthood on Job Performance, Human Capital, and Career Advancement Review of Economics and Statistics 2026 · TFDW_D_Matching.do:65 · pkg 13098 matching estimator
qui: psmatch2 everbaby if g==`j', pscore(phat_`pm') neighbor(5)
’Til Dowry Do Us Part: Bargaining and Violence in Indian Families Review of Economics and Statistics 2026 · RESTAT_REPLICATION_SUBMIT_Appendix_Codes_Table_A1_Dowries.do:66 · pkg 13443 matching estimator
psmatch2 hindu1, pscore(pscore) noreplace n(1)
Optimal Ownership and Firm Performance: An Analysis of China’s FDI Liberalization Review of Economics and Statistics 2026 · _replic_REStat_public_code_2_FDI_liberalization_analysis.do:136 · pkg 13924 matching estimator
psmatch2 lib1_full01 ${cov_00} if year==2000 & sample_direct_unw==1, logit common
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):
psmatch2 lib1_full01 loutput_00 foreign_share_00 age_00 lwage_empl_00 exp_share_00 imp_share_00 lempl_00 i.cic2 if year==2000 & sample_direct_unw==1, logit common
School Choice, Student Sorting, and Academic Performance Review of Economics and Statistics 2026 · package_code_replication_a_-_matching_matching_nearest.R:64 · pkg 13943 matching estimator
x<-matchit(treatment ~ entrance_perc+n_students_town_yr+entrance_perc_town,
           data = data_temp,
           method = "nearest",
           distance = "mahalanobis",
           caliper=c(entrance_perc=0.01,n_students_town_yr=35*2^i*1.03^(-decile*i),entrance_perc_town=0.05),
           std.caliper=F,
           replace = T)