Matching
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
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.
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
-
credit / lending / default7% · 3written as
_merge_credit_baseline,badloan_loan,loan5,loan63 examples in the code
- Collateral Effects: The Role of FinTech in Small Business Lending
Review of Financial Studies 2026 · pkg 205
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_collate …
- Borrowing to Save? The Impact of Automatic Enrollment on Debt
The Journal of Finance 2022 · pkg 15815
replication_jof/dofiles/matching.do:182 ·
_merge_credit_baseline(loop-expanded: var=_merge_credit_baseline)reg `var' post if college_degree == 1 [iweight = cem_weights]
- Do bank CEOs learn from banking crises?
Journal of Financial Economics 2025 · pkg 16120
Replication Package for “Do Bank CEOs Learn from Banking Crises”/code/JFE_code.do:1066 ·
badloan_loaneststo:reghdfe badloan_loan t $c [fweight=_weight],absorb (stateyr) cluster(boardid)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo:reghdfe badloan_loan t size_l1 ret_a_l1 bme_l1 beta_l1 bklvrg_l1 dep_l1 n2i_rev_l1 highdegree age female [fweight=_weight],absorb (stateyr) cluster(boardid)
- Collateral Effects: The Role of FinTech in Small Business Lending
Review of Financial Studies 2026 · pkg 205
-
treatment status (first stages, propensity scores)7% · 3written as
treat,treated,treatment3 examples in the code
- Bank Competition Amid Digital Disruption: Implications for Financial Inclusion
The Journal of Finance 2026 · pkg 15636
matchit_result <- matchit(treat ~ lnGDP + log_bank_last_year + lnCPI + lnPop + prop_under55 + weight.white + Unemployment_Rate, data = ., method = "nearest", distance = "mahalanobis", ratio = 1)
- The Impact of Repossession Risk on Mortgage Default
The Journal of Finance 2021 · pkg 15774
codes/balance_it2.R:11 ·
treatmentm.out <- matchit(treatment ~ bank + rate + rate_type + oltv + lnincome + nuts, … - RegTech: Technology-driven compliance and its effects on profitability, operations, and ma
Journal of Financial Economics 2024 · pkg 80977
m.out = matchit(treated ~ frac_dual + frac_emp_w_complaint_history_lag1 + log_tenure_year + lagasset_coal + log_emp_lag1 + log_emp_lag1_sq + log_emp_lag1_cube + num …
- Bank Competition Amid Digital Disruption: Implications for Financial Inclusion
The Journal of Finance 2026 · pkg 15636
-
interest rates / spreads / yields4% · 2written as
div_yield,spread,tot_spread2 examples in the code
- Are syndicated loans truly less expensive? ✩
Journal of Banking & Finance 2020 · pkg 12309
8-EXTRA-specifications.do:47 ·
tot_spreadquietly /// etregress tot_spread /// synd##i.dA_Size /// c.log_dlLD##i.dA_Size /// c.log_trPP c.SyndLeadRatio c.SyndLeadReputation /// c.log_tA c.Tranches_per_Deal c.Maturity i.Revo … - Currency flotation and dividend policies: Evidence from China's central parity reform
Financial Management 2024 · pkg 34364
Code.do:263 ·
div_yieldreghdfe div_yield fx_beta_post fx_beta $cv /// if _weight != .& hedge==1, absorb(year firm) vce(cluster firm) keepsingletonsAs we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe div_yield fx_beta_post fx_beta size roe lev asset_growth ocf tangible capex admin_rev seo if _weight != .& hedge==1, absorb(year firm) vce(cluster firm) keepsingletons
- Are syndicated loans truly less expensive? ✩
Journal of Banking & Finance 2020 · pkg 12309
-
profitability (ROA, ROE, margins, earnings)4% · 2written as
b2_roa,roa,roe_std122 examples in the code
- Liquidity Transformation and Fragility in the U.S. Banking Sector
The Journal of Finance 2024 · pkg 16011
reghdfe `x' high_unin if _weight==1, noabsorb vce(cluster rssd9001 date)
- Do bank CEOs learn from banking crises?
Journal of Financial Economics 2025 · pkg 16120
eststo:reghdfe b2_roa t $c [fweight=_weight],absorb (stateyr) cluster(boardid)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo:reghdfe b2_roa t size_l1 ret_a_l1 bme_l1 beta_l1 bklvrg_l1 dep_l1 n2i_rev_l1 highdegree age female [fweight=_weight],absorb (stateyr) cluster(boardid)
- Liquidity Transformation and Fragility in the U.S. Banking Sector
The Journal of Finance 2024 · pkg 16011
-
stock returns / abnormal returns4% · 2written as
CAR,return_i2 examples in the code
- Information Asymmetry, Financial Intermediation, and Wealth Effects of Project Finance Loa
Review of Corporate Finance Studies 2023 · pkg 7285
etregress CAR loan_ta syndic lender_eq eq_raise offtake lnmve volatility /// top20 mgnt_shdg crbret gpu nonbank spbank1, /// treat(hedging = precious spbank1 offtake nonusdloan mgnt_shdg top … - J’Accuse! Antisemitism and financial markets in the time of the Dreyfus Affair
Journal of Financial Economics 2024 · pkg 14199
Replication/do/analysis_sdid.do:339 ·
return_ieststo: reghdfe return_i treat if m_matched==1 & period2==0 & period1==0, a(i.m_strata) cluster(firmperiod)
- Information Asymmetry, Financial Intermediation, and Wealth Effects of Project Finance Loa
Review of Corporate Finance Studies 2023 · pkg 7285
-
demographics (often balance / covariate checks)2% · 1written as
age_at_hire,asian,black,hispanic,male1 example in the code
- Borrowing to Save? The Impact of Automatic Enrollment on Debt
The Journal of Finance 2022 · pkg 15815
reg `var' post if college_degree == 1 [iweight = cem_weights]
- Borrowing to Save? The Impact of Automatic Enrollment on Debt
The Journal of Finance 2022 · pkg 15815
-
education / test scores2% · 1written as
graduate,missing_degree,some_college1 example in the code
- Borrowing to Save? The Impact of Automatic Enrollment on Debt
The Journal of Finance 2022 · pkg 15815
reg `var' post if college_degree == 1 [iweight = cem_weights]
- Borrowing to Save? The Impact of Automatic Enrollment on Debt
The Journal of Finance 2022 · pkg 15815
-
firm size (assets, market cap)2% · 1written as
lnsize1 example in the code
- Liquidity Transformation and Fragility in the U.S. Banking Sector
The Journal of Finance 2024 · pkg 16011
reghdfe `x' high_unin if _weight==1, noabsorb vce(cluster rssd9001 date)
- Liquidity Transformation and Fragility in the U.S. Banking Sector
The Journal of Finance 2024 · pkg 16011
Economics — 120 of 211 packages have a readable outcome
-
employment / labour supply10% · 12written as
Lprod_worker,SEG2_employed,d_selfemployed_1950,d_selfemployed_1960,d_selfemployed_19714 examples in the code
- Baby Bumps in the Road: The Impact of Parenthood on Job Performance, Human Capital, and Ca
Review of Economics and Statistics 2026 · pkg 13098
reghdfe `var' everbaby everbaby_fem _Tkidevent__* _Mmatch_tim_* /// if inrange(match_time, -19, 25) [aw=match_wt], /// absorb(mgroup_id year_mo) vce(cluster mgroup_id id)
- Split Decisions: Household Finance When a Policy Discontinuity Allocates Overseas Work
Review of Economics and Statistics 2017 · pkg 13577
clemens_tiongson_restat_-_main_tables_and_figures.do:1733 ·
working(loop-expanded: outcome=working)psmatch2 KOREAeverHH $HoHcontrols `condition' & obstudy, out(`outcome') neighbor(10)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):psmatch2 KOREAeverHH HoH_age HoH_female HoH_married HoH_years_educ HoH_region1 HoH_region2 HoH_region3 HoH_region4 HoH_hhsize singlehouse own strongwall strongroof `condition' & obstudy, out(`outcome' …
- Optimal Ownership and Firm Performance: An Analysis of China’s FDI Liberalization
Review of Economics and Statistics 2026 · pkg 13924
reghdfe `y' 1.treated#1.after01 c.TPU_1996#ib2000.year c.AHS_simple98#ib2000.year if acq100==1 [pw=ipweight], absorb(firm_id year#cic_code) vce(cluster firm_id)
- Persistent effects of universities on local industrial growth: Evidence from China's polic
Journal of Development Economics 2026 · pkg 14470
Persistent Effects of Universities on Local Econom/Manuscript Final - Replication Code.do:510 ·
ihs_employmentpsmatch2 relodummy railway coal capital port firm_history river latitude slope industry county, outcome(ihs_employment) neighbor(1) noreplacement
- Baby Bumps in the Road: The Impact of Parenthood on Job Performance, Human Capital, and Ca
Review of Economics and Statistics 2026 · pkg 13098
-
demographics (often balance / covariate checks)8% · 9written as
age(3),black(2),female(2),married(2),Lage4 examples in the code
- The Costs of Employment Segregation: Evidence from the Federal Government Under Woodrow Wi
Quarterly Journal of Economics 2022 · pkg 7455
reg `var' b if b!=. & year==1911 [aweight=cem], robust
- Baby Bumps in the Road: The Impact of Parenthood on Job Performance, Human Capital, and Ca
Review of Economics and Statistics 2026 · pkg 13098
reghdfe `var' everbaby [aw=match_wt] if female==`f', noabsorb vce(cluster id mgroup_id)
- The economic consequences of being widowed by war: A life-cycle perspective
Journal of Public Economics 2024 · pkg 14681
teffects ipw (`y') (d_warwidow d_houseowner_1939 d_expellee d_SBZ siblings i.years_education i.occ_cat10_1939 i.sector_cat6_1939 i.birth_year), atet vce(cluster district_no)
- The Impact of Cash Transfers to Poor Mothers on Family Structure and Maternal Well-Being
American Economic Journal: Applied Economics 2024 · pkg 17125
teffects ipw (`y') (m_accepted_mp_o) if ${rest}, vce(cluster fips_mp_o)As we read it — macros filled in / loop expanded (an interpretation, not the file's text):teffects ipw (`y') (m_accepted_mp_o) if year_app_mp_o <=1930 & m_selected_application_fs!=. & m_relationtochildren_fs_o=="" & m_minage_mp!=. & m_marital_st_mp!=1 & m_marital_st_mp!=2, vce(cluster fips …
- The Costs of Employment Segregation: Evidence from the Federal Government Under Woodrow Wi
Quarterly Journal of Economics 2022 · pkg 7455
-
wages / earnings7% · 8written as
asinh_hh_wage_income,d_wage,ln_hrwage,logW,log_salary4 examples in the code
- The Costs of Employment Segregation: Evidence from the Federal Government Under Woodrow Wi
Quarterly Journal of Economics 2022 · pkg 7455
figure 2.do:3 ·
log_salaryreghdfe log_salary d_a1_b d_a2_b d_a4_b-d_a8_b [aweight=cem] if w==1, absorb(around id i.age_bins#i.b ) vce(cluster eid)
- Baby Bumps in the Road: The Impact of Parenthood on Job Performance, Human Capital, and Ca
Review of Economics and Statistics 2026 · pkg 13098
reg wage everbaby if female==1&match_time==-10 [aw=match_wt], vce(cluster id)
- Split Decisions: Household Finance When a Policy Discontinuity Allocates Overseas Work
Review of Economics and Statistics 2017 · pkg 13577
clemens_tiongson_restat_-_main_tables_and_figures.do:1785 ·
asinh_hh_wage_income(loop-expanded: outcome=asinh_hh_wage_income)psmatch2 KOREAeverHH $HoHcontrols `condition' & obstudy, out(`outcome') neighbor(10)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):psmatch2 KOREAeverHH HoH_age HoH_female HoH_married HoH_years_educ HoH_region1 HoH_region2 HoH_region3 HoH_region4 HoH_hhsize singlehouse own strongwall strongroof `condition' & obstudy, out(`outcome' …
- Breastfeeding and Children's Early Cognitive Outcomes
Review of Economics and Statistics 2013 · pkg 13753
psid08p.do:59 ·
lw56psmatch2 bfeed femch black hisp newimmi bapt cath momhgc dadhgc ageb regnc regs regw
- The Costs of Employment Segregation: Evidence from the Federal Government Under Woodrow Wi
Quarterly Journal of Economics 2022 · pkg 7455
-
treatment status (first stages, propensity scores)6% · 7written as
treat(3),cora_treatment,ever_treated,treated,treatment4 examples in the code
- Disrupting Drug Markets: The Effects of Crackdowns on Rogue Opioid Suppliers
American Economic Journal: Economic Policy 2025 · pkg 11658
m.out1 <- matchit(treat ~ PCT_BLACK + unemploymentrate + withoutcare_per + PCT_MEDICARE + manufacture_per + pop + POP_DENSITY + MD_PC, data = affectedcounties %>% ungroup() %>% filte … - Housing Discrimination and the Toxics Exposure Gap in the United States: Evidence from the
Review of Economics and Statistics 2022 · pkg 13623
mod_match1 <- matchit(treated~rent+type+bedroom_max+bathroom_max+sqft+assault+groceries+hispanicshare+blackshare+whiteshare+povrate+unemployed+college, method = "nearest", data = db) - School Choice, Student Sorting, and Academic Performance
Review of Economics and Statistics 2026 · pkg 13943
x<-matchit(treatment ~ entrance_perc+n_students_town_yr+entrance_perc_town, data = data_temp, method = "nearest", distance = "mahalanobis", caliper=c(entran … - The grievances of a failed reform: Chilean land reform and conflict with indigenous commun
The Economic Journal 2026 · pkg 19306
3-replication-package/code/3-prepare.do:180 ·
cora_treatmentteffects psmatch (cora_treatment) ($CONTROLS area_ha), caliper(0.000001) osample(support_coraT)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):teffects psmatch (cora_treatment) (tdm log_altitude ldist_agua ldist_temuco wheat_suitability prov_1 area_ha), caliper(0.000001) osample(support_coraT)
- Disrupting Drug Markets: The Effects of Crackdowns on Rogue Opioid Suppliers
American Economic Journal: Economic Policy 2025 · pkg 11658
-
education / test scores5% · 6written as
chg_enrolment7,educ,gpa_2011,gpa_2012,gpa_20134 examples in the code
- Baby Bumps in the Road: The Impact of Parenthood on Job Performance, Human Capital, and Ca
Review of Economics and Statistics 2026 · pkg 13098
reghdfe `var' everbaby [aw=match_wt] if female==`f', noabsorb vce(cluster id mgroup_id)
- Do Sanitary Pads Improve Girls' Educational Outcomes?
Review of Economics and Statistics 2024 · pkg 13524
3_appendices.do:177 ·
chg_enrolment7psmatch2 t_machine_installed $controls if balancedpanel7==1, qui outcome(chg_enrolment7) n(1) trim(2)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):psmatch2 t_machine_installed total_enrolbg_2013 bookinlib_2013 toiletd_2013 toiletb_2013 toiletg_2013 clrooms_2013 clgood_2013 smc_2013 smcsdp_2013 medchk_2013 electric_2013 library_2013 playground_20 …
- Breastfeeding and Children's Early Cognitive Outcomes
Review of Economics and Statistics 2013 · pkg 13753
stata08.do:47 ·
math56psmatch2 bfeed cfemale cblack chisp pwhte bapt79 cath79 hgcyob marbirth ptp ftp pftpdv
- On the Family Origins of Human Capital Formation: Evidence from Donor Children
Review of Economic Studies 2025 · pkg 18712
Tables OA_B6.do:57 ·
overall_gradexi: reg overall_grade yr_edu yr_eduf genderboy birthy_ch birthy_m birthy_f danem danef groups41 groups42 groups43 groups44 groups45 groups46 groups47 groups48 groups49 groups50 /// groups51 groups52 …
- Baby Bumps in the Road: The Impact of Parenthood on Job Performance, Human Capital, and Ca
Review of Economics and Statistics 2026 · pkg 13098
-
income / consumption / wealth / inequality5% · 6written as
asinh_hhincome,asinh_hhincome_noremit,asinh_income_bus_agr,asinh_income_bus_nonagr,asinh_savings4 examples in the code
- Do better property rights improve local income?: Evidence from First Nations' treaties
Journal of Development Economics 2015 · pkg 11879
matching.do:166 ·
ln_totinc_cpi2xi: nnmatch ln_totinc_cpi2 treatyever_i point_x point_y ln_totinc_cpi2_1991 ln_pop_band_1991 dum_registered_1991 dum_highplus_1991 laborforce_1991 , robust(1) keep(matching1) replace
- Split Decisions: Household Finance When a Policy Discontinuity Allocates Overseas Work
Review of Economics and Statistics 2017 · pkg 13577
clemens_tiongson_restat_-_main_tables_and_figures.do:1785 ·
asinh_hhincome(loop-expanded: outcome=asinh_hhincome)psmatch2 KOREAeverHH $HoHcontrols `condition' & obstudy, out(`outcome') neighbor(10)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):psmatch2 KOREAeverHH HoH_age HoH_female HoH_married HoH_years_educ HoH_region1 HoH_region2 HoH_region3 HoH_region4 HoH_hhsize singlehouse own strongwall strongroof `condition' & obstudy, out(`outcome' …
- Managing Inequality: Manager-Specific Wage Premiums and Selection in the Managerial Labor
Review of Economics and Statistics 2025 · pkg 13928
figure4.do:390 ·
log_incomeeststo: reghdfe log_income taub3-tau5_t exper_educ1-exper_fem if nmatched==1&tau>=-3&tau<=5&age_event>20&age_event<60, absorb(pnr) vce(cluster lbnr)
- The economic consequences of being widowed by war: A life-cycle perspective
Journal of Public Economics 2024 · pkg 14681
mzu71_scripts_3-mzu71-regressions.do:306 ·
income_midpoints_level(loop-expanded: y=income_midpoints_level)teffects ipw (`y') (d_warwidow d_houseowner_1939 d_expellee d_SBZ siblings i.years_education i.occ_cat10_1939 i.sector_cat6_1939 i.birth_year), atet vce(cluster district_no)
- Do better property rights improve local income?: Evidence from First Nations' treaties
Journal of Development Economics 2015 · pkg 11879
-
profitability (ROA, ROE, margins, earnings)4% · 5written as
dif_roa_1,dif_roa_2,ln_net_inc,profit_ratio,roa4 examples in the code
- Optimal Ownership and Firm Performance: An Analysis of China’s FDI Liberalization
Review of Economics and Statistics 2026 · pkg 13924
_replic_REStat_public_code_2_FDI_liberalization_analysis.do:334 ·
profit_ratio(loop-expanded: y=profit_ratio)reghdfe `y' 1.treated#1.after01 c.TPU_1996#ib2000.year c.AHS_simple98#ib2000.year if acq100==1 [pw=ipweight], absorb(firm_id year#cic_code) vce(cluster firm_id)
- The Monitoring Incentive of Transactional and Relationship Lenders: Evidence from the Synd
Journal of Money, Credit and Banking 2015 · pkg 49001
Final Submitted Package/13-211 Code.txt:137 ·
dif_roa_1bs r(att), reps(50): psmatch2 tlo lat_m1 mkbk notrated noninvestmentgrade edf_0 levg roa_m1 zscr_m1 allindrawn lloansize lmat sicd1-sicd10 year2000-year2009 if loanissueyear<=2007 & sample==1, outcom …
- Pushed Past the Limit? How Japanese Banks Reacted to Negative Rates
Journal of Money, Credit and Banking 2022 · pkg 49217
replication_kit/programs/Tables_9_11_diff_in_diff_exercise.do:53 ·
ln_net_inc(loop-expanded: dv=ln_net_inc)qui areg `dv' post_treated i.time post_roaa post_div_yield post_car post_loans_assets post_manuf post_services post_mining post_transport post_retail post_finance post_realestate post_ag post_other p …
- The Effects of a Multifaceted Poverty Alleviation Program on Rural Income and Household Be
American Economic Journal: Economic Policy 2025 · pkg 155200
Replication/Programs/Data_counstruction.do:243 ·
rural_net_incqui psmatch2 national_poor $selection_criteria, out(rural_net_inc) neighbor(1) logit common noreplacement
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui psmatch2 national_poor eight_seven_county income_dummy minority_county revolutionary_county rural_share2012 mountain_county revenue_pc2012, out(rural_net_inc) neighbor(1) logit common noreplacemen …
- Optimal Ownership and Firm Performance: An Analysis of China’s FDI Liberalization
Review of Economics and Statistics 2026 · pkg 13924
-
credit / lending / default3% · 4written as
approved,default,dist_default,ln_loans_7plus,loan_ta4 examples in the code
- Distressed Debt Restructuring in the Presence of Credit Default Swaps
Journal of Money, Credit and Banking 2016 · pkg 49024
restructuring_outcome.do:171 ·
defaultnnmatch default cds_flag size lev_ind_adj sen_unsec_general tangibility short_debt_td bond_dispersion , biasadj(bias) tc(att) robust(6) keep(matched_sample) replace
- Pushed Past the Limit? How Japanese Banks Reacted to Negative Rates
Journal of Money, Credit and Banking 2022 · pkg 49217
replication_kit/programs/Tables_9_11_diff_in_diff_exercise.do:59 ·
dist_default(loop-expanded: dv=dist_default)qui areg `dv' post_treated i.time post_roaa post_div_yield post_car post_loans_assets post_manuf post_services post_mining post_transport post_retail post_finance post_realestate post_ag post_other …
- Bad Taste: Gender Discrimination in Consumer Lending Ana
Journal of Political Economy Microeconomics 2026 · pkg 77274
table1.do:111 ·
approvedxi: teffects nnmatch (approved dummy_ammount_2*##i.dummy_lenght_* i.ins_cod i.date_m debt_sys debt_sys_d1-debt_sys_d9 debt_bank_d1-debt_bank_d9 score_d1-score_d9 age_25_35 age_36_45 age_46_55 age_56_ …
- Financial spillovers of foreign direct investment: Evidence from China
Journal of International Economics 2024 · pkg 113116
rep/replication_code.do:763 ·
loan_tapsmatch2 Supply_FIE_HMT logage logta profitability dm_tfp_opacf i.ind i.provid Supply_SOE if year==`j', out(loan_ta)
- Distressed Debt Restructuring in the Presence of Credit Default Swaps
Journal of Money, Credit and Banking 2016 · pkg 49024
Outcomes that are taxonomy measures (all fields: the package computes the measure and estimates it as the outcome)
- Cash Effective Tax Rate 1 package · 3 models
1 example in the code
- Navigating through cyberattacks: The role of tax aggressiveness
Journal of Corporate Finance 2024 · pkg 113335
psmatch2 treatment, out(cetr) pscore(myscore) caliper(0.01) neighbor(1) noreplacement
- Navigating through cyberattacks: The role of tax aggressiveness
Journal of Corporate Finance 2024 · pkg 113335
- Cash Holdings 1 package · 1 models
1 example in the code
- Price Rigidities and Credit Risk
Journal of Financial and Quantitative Analysis 2025 · pkg 14123
teffects nnmatch (cash2at `matchvars') (`treatedvar'), gen(matchid) control(0) tlevel(1) atet vce(iid)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):teffects nnmatch (cash2at `"lnat lvrg m2b ni2at rating retvol"') (treated10), gen(matchid) control(0) tlevel(1) atet vce(iid)
- Price Rigidities and Credit Risk
Journal of Financial and Quantitative Analysis 2025 · pkg 14123
- Firm Age 1 package · 1 models
1 example in the code
- The Real Effects of Environmental Activist Investing
Review of Financial Studies 2026 · pkg 39598
psmatch2 treated $matchingvar if indyear == `l', outcome(firmage) noreplacement neighbor(1)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):psmatch2 treated loga_t_1 prof_a_t_1 mk2bk_t_1 environment_score_stan if indyear == `l', outcome(firmage) noreplacement neighbor(1)
- The Real Effects of Environmental Activist Investing
Review of Financial Studies 2026 · pkg 39598
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)
psmatch2160teffects49cem39matchit26nnmatch18match9kmatch7etregress6
Inference (of the 293 packages running the dedicated estimator)
default269robust16cluster10bootstrap5
Clustering variables (of the 293 packages running the dedicated estimator)
rezfe_num2dealid1district_no1fips_mp_o1lbnr1mom_id1pcprev1state_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).
- Difference-in-Differences with multiple time periods — Brantly Callaway; Pedro H.C. Sant’Anna (2021), Journal of Econometrics24 · 8%
- Two-Way Fixed Effects Estimators with Heterogeneous Treatment Effects — Clément de Chaisemartin; Xavier D’Haultfœuille (2020), American Economic Review23 · 8%
- Difference-in-differences with variation in treatment timing — Andrew Goodman-Bacon (2021), Journal of Econometrics22 · 8%
- Causal Inference without Balance Checking: Coarsened Exact Matching — Stefano M. Iacus; Gary King; Giuseppe Porro (2011), Political Analysis22 · 8%
- Estimating dynamic treatment effects in event studies with heterogeneous treatment effects — Liyang Sun; Sarah Abraham (2021), Journal of Econometrics19 · 7%
- Recent Developments in the Econometrics of Program Evaluation — Guido W Imbens; Jeffrey M Wooldridge (2009), Journal of Economic Literature18 · 6%
- How much should we trust staggered difference-in-differences estimates? — Andrew C. Baker; David F. Larcker; Charles C.Y. Wang (2022), Journal of Financial Economics17 · 6%
- Revisiting Event-Study Designs: Robust and Efficient Estimation — Kirill Borusyak; Xavier Jaravel; Jann Spiess (2024), Review of Economic Studies16 · 6%
- Bias-Corrected Matching Estimators for Average Treatment Effects — Alberto Abadie; Guido W. Imbens (2011), Journal of Business and Economic Statistics14 · 5%
- Unobservable Selection and Coefficient Stability: Theory and Evidence — Emily Oster (2019), Journal of Business and Economic Statistics14 · 5%
- The central role of the propensity score in observational studies for causal effects — Paul R. Rosenbaum; Donald B. Rubin (1983), Biometrika13 · 4%
- The Effect of Minimum Wages on Low-Wage Jobs — Doruk Cengiz; Arindrajit Dubé; Attila Lindner; Ben Zipperer (2019), Quarterly Journal of Economics12 · 4%
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).
capture noisily psmatch2 p2p loan0 loan1 loan2 loan3 loan4 loan5 $xlist /// if cell == `i', out(loan6) noreplacement common
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
cem
psmatch2 treat r_tot_pre r_person_pre pobl_pre american_pre if pdate==207, n(6)
capture psmatch2 star10 $controls $nonmisscontrols, n(5) common
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
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
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)
psmatch2 bank_treated, pscore(pscore) neighbor(1) ties common caliper(0.05)
eststo:qui etregress ABSDA $controls i.ind i.year i.InstitutionID, treat($x = SHOCK_PROMOTE $controls2 i.ind i.year i.fensuo) twostep first
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
qui: psmatch2 everbaby if g==`j', pscore(phat_`pm') neighbor(5)
psmatch2 hindu1, pscore(pscore) noreplace n(1)
psmatch2 lib1_full01 ${cov_00} if year==2000 & sample_direct_unw==1, logit commonpsmatch2 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
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)