What each design is used to study
The outcomes (dependent variables) that replication code estimates under each identification design, in finance and in economics — read from the model roles we read from the code, one count per package. The same design answers different questions in the two fields. Each design's package count is the one on its recipe and methods page; the outcomes are read from the models that show the design itself, and shares are of the packages with a readable outcome. Greyed shares rest on fewer than 10 packages.
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.
Difference-in-differences — 498 packages in the design
recipe →Finance — 70 of 80 packages have a readable outcome
- employment / labour supply14% · 10
- credit / lending / default11% · 8
- profitability (ROA, ROE, margins, earnings)11% · 8
- investment / capex / R&D10% · 7
- prices / inflation / rents10% · 7
- stock returns / abnormal returns10% · 7
Economics — 341 of 393 packages have a readable outcome
- employment / labour supply16% · 54
- education / test scores8% · 29
- health / mortality8% · 27
- demographics (often balance / covariate checks)7% · 25
- income / consumption / wealth / inequality7% · 24
- wages / earnings7% · 24
Event study — 205 packages in the design
recipe →Finance — 20 of 39 packages have a readable outcome
- stock returns / abnormal returns65% · 13
- investment / capex / R&D5% · 1
- leverage / debt5% · 1
Economics — 75 of 156 packages have a readable outcome
- employment / labour supply8% · 6
- sales / output / quantities / productivity7% · 5
- wages / earnings7% · 5
- income / consumption / wealth / inequality5% · 4
- crime / conflict / corruption4% · 3
- health / mortality4% · 3
Instrumental variables — 1,899 packages in the design
recipe →Finance — 214 of 241 packages have a readable outcome
- credit / lending / default8% · 17
- sales / output / quantities / productivity8% · 17
- employment / labour supply7% · 14
- prices / inflation / rents7% · 14
- stock returns / abnormal returns6% · 12
- investment / capex / R&D5% · 11
Economics — 1436 of 1,642 packages have a readable outcome
- employment / labour supply10% · 139
- wages / earnings8% · 117
- sales / output / quantities / productivity8% · 110
- education / test scores6% · 93
- income / consumption / wealth / inequality6% · 79
- health / mortality5% · 75
Regression discontinuity — 260 packages in the design
recipe →Finance — 18 of 28 packages have a readable outcome
- profitability (ROA, ROE, margins, earnings)28% · 5
- leverage / debt22% · 4
- stock returns / abnormal returns22% · 4
- employment / labour supply17% · 3
- demographics (often balance / covariate checks)11% · 2
- education / test scores11% · 2
Economics — 153 of 227 packages have a readable outcome
- demographics (often balance / covariate checks)25% · 38
- education / test scores23% · 35
- migration / population18% · 27
- employment / labour supply16% · 25
- voting / elections / politics16% · 24
- income / consumption / wealth / inequality15% · 23
Finance — 45 of 74 packages have a readable outcome
- credit / lending / default7% · 3
- treatment status (first stages, propensity scores)7% · 3
- interest rates / spreads / yields4% · 2
- profitability (ROA, ROE, margins, earnings)4% · 2
- stock returns / abnormal returns4% · 2
- demographics (often balance / covariate checks)2% · 1
Economics — 120 of 211 packages have a readable outcome
- employment / labour supply10% · 12
- demographics (often balance / covariate checks)8% · 9
- wages / earnings7% · 8
- treatment status (first stages, propensity scores)6% · 7
- education / test scores5% · 6
- income / consumption / wealth / inequality5% · 6
Synthetic control — 104 packages in the design
recipe →Finance — 3 of 6 packages have a readable outcome (thin)
- stock returns / abnormal returns33% · 1
Economics — 62 of 95 packages have a readable outcome
- crime / conflict / corruption6% · 4
- prices / inflation / rents6% · 4
- sales / output / quantities / productivity6% · 4
- employment / labour supply5% · 3
- health / mortality5% · 3
- income / consumption / wealth / inequality3% · 2
Panel fixed effects (no quasi-experimental design found) — 2,634 packages in the design
recipe →Finance — 542 of 556 packages have a readable outcome
- stock returns / abnormal returns16% · 87
- credit / lending / default13% · 71
- leverage / debt10% · 56
- sales / output / quantities / productivity10% · 56
- employment / labour supply10% · 52
- profitability (ROA, ROE, margins, earnings)10% · 52
Economics — 1902 of 1,976 packages have a readable outcome
- employment / labour supply13% · 246
- demographics (often balance / covariate checks)10% · 187
- education / test scores10% · 182
- wages / earnings9% · 180
- sales / output / quantities / productivity9% · 171
- income / consumption / wealth / inequality8% · 144
Instrumental variables: what the instruments are
Excluded instruments in 1,747 of the 1,899 IV packages (those where we read an instrument list), typed by how they are written (lower bounds: most carry a name only their paper explains).
-
written as
l.m(6),l.lm(4),l.m2(4),l.l(3),l.l2(3)all 223 packages →4 examples in the code
- The Rise of Star Firms: Intangible Capital and Competition
Review of Financial Studies 2024 · pkg 131
TablesADM_RFS.do:148 ·
l.impOTHqui: xi: eststo: ivreghdfe `v1' L.LIC L.Lage (L.impUSA=L.impOTH), first cluster(naics2007_4dig) absorb(year naics2007_4dig)
- Small Bank Lending in the Era of Fintech and Shadow Banks: A Sideshow?
Review of Financial Studies 2022 · pkg 148
03_CountyLevelTests.do:123 ·
w_L7_Sh_LenderType_1_nloancapture eststo gB4LT_`t'_IV1: ivreghdfe w_Gr7_LenderType_`t'_nloan (w_Gr7_LenderType_1_nloan = w_L7_Sh_LenderType_1_nloan) $L7_CONTROL if year==2015 & $FILT, absorb($FE ) cluster($CLVAR )
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):capture eststo gB4LT_`t'_IV1: ivreghdfe w_Gr7_LenderType_`t'_nloan (w_Gr7_LenderType_1_nloan = w_L7_Sh_LenderType_1_nloan) L7.z_ln_total_pop L7.z_minority L7.z_PerCapInc L7.z_SP_Shr L7.z_ln_BHCs L7.z_ …
- Leaky Director Networks and Innovation Herding
Review of Financial Studies 2026 · pkg 172
tables_1_to_7_figures_3_and_4.do:275 ·
log_atl1ivreghdfe tsim4_wz (oddensity4l1_wz = c.z2#c.post2004 log_atl1 log_agel1 ) if year>=2000 & year<=2009 & tsim4_wz!=. & profitability_wz!=. & mkt_book_wz!=. & numpat2at_wz!=. & valpat2at_wz!= …
typed from its definition at tables_1_to_7_figures_3_and_4.do:64:log_at[_n-1] - International Portfolio Choice with Frictions: Evidence from Mutual Funds
Review of Financial Studies 2023 · pkg 188
ivreghdfe zint (lzint val xer = q1 q2 q3 q4 q5 q6 q7 q8 ), absorb(fundid#id) cluster(datem) first
typed from its definition at replication_files_codes__do_estim_MainResults.do:70 (via lval):val[_n-1]
- The Rise of Star Firms: Intangible Capital and Competition
Review of Financial Studies 2024 · pkg 131
-
written as
Z(24),instrument(19),z(19),iv(14),z1(8)all 151 packages →4 examples in the code
- Estimating General Equilibrium Spillovers of Large-Scale Shocks
Review of Financial Studies 2023 · pkg 29
Code_Huber_RFS_Simulations.do:216 ·
instrumentivreg y_1_spillover_x2 (x2 industry_mean_x2_1 = instrument industry_mean_instrument_1), cluster(county)
- The Effects of Going Public on Firm Profitability and Strategy
Review of Financial Studies 2025 · pkg 203
qui xtivreg2 wroa (IPO=instrument) deventyear2 deventyear3 deventyear4 deventyear5 dsic1year* dmonth* , fe first cluster(id) partial(deventyear2 deventyear3 deventyear4 deventyear5 dsic1year* dmonth*)
- 3G Internet and Confidence in Government
Quarterly Journal of Economics 2021 · pkg 7447
ivreghdfe pr_component (three_g_w= instr) $income_controls c.max_elevation#c.year i.popul_density_bins_5#c.year c.share_desert#c.year c.share_mountains#c.year c.three_g_2008#c.year c.three_g_2008_0#c …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivreghdfe pr_component (three_g_w= instr) income_control democ7 democ5 lngdp_pc unemployment c.max_elevation#c.year i.popul_density_bins_5#c.year c.share_desert#c.year c.share_mountains#c.year c.three …
- Do Energy Efficiency Investments Deliver? Evidence from the Weatherization Assistance Prog
Quarterly Journal of Economics 2018 · pkg 7461
xtivreg2 lnBTU (D=IV) _Iyear_* D_monXyea_*, fe robust cluster(fwhhid) first
- Estimating General Equilibrium Spillovers of Large-Scale Shocks
Review of Financial Studies 2023 · pkg 29
-
written as
treat(21),treatment(19),treated(11),treat2(8),treat1(5)all 116 packages →4 examples in the code
- Growing Markets through Business Training for Female Entrepreneurs: A Market-Level Randomi
American Economic Journal: Applied Economics 2021 · pkg 3478
DoFiles/GrowingMarkets_replicationfile_TablesAndFigures.do:2039 ·
r1_treated_r23xi: ivreg2 survives (everattends_r23 everattends_r45=r1_treated_r23 r1_treated_r45) spillovertreat_r23 spillovertreat_r45 round3 round4 round5 i.r1_Strata, r cluster(r1_market1)
- Local Elites as State Capacity: How City Chiefs Use Local Information to Increase Tax Comp
American Economic Review 2022 · pkg 3482
eststo: ivreg2 inc_mo_el (taxes_paid = t_l) i.house i.stratum if inlist(tmt,1,2), cl(a7)
typed from its definition at Replication Materials - Updated October 2025/Dofiles/Tables_Figures/Table5.do:111:treatment==2 - Double for Nothing? Experimental Evidence on an Unconditional Teacher Salary Increase in I
Quarterly Journal of Economics 2018 · pkg 7384
eststo m2: xi: ivreg2 ITT_score (P2 = treatment) $controls10 i.triplet_id if year==2 [pweight=weight], cluster(school_id)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo m2: xi: ivreg2 ITT_score (P2 = treatment) ITT_score0 missing_ITT_score0 schoolscore0 missing_schoolscore0 i.triplet_id if year==2 [pweight=weight], cluster(school_id)
- The Allocation of Authority in Organizations: A Field Experiment with Bureaucrats
Quarterly Journal of Economics 2021 · pkg 7397
Code/7-2_Table3.do:148 ·
Incentives0ivregress 2sls lUnitPrice /// lPriceHat NewItemID#c.lQuantity i.NewItemID NCC i.strata /// (ProcTime = Incentives0) [aweight=ExpInCtrl] if agD_l48 == 0 & (Incentives0 == 1 | (Rules0 == …typed from its definition at Code/4-7_TableF5.do:6:(Treatment == 1)
- Growing Markets through Business Training for Female Entrepreneurs: A Market-Level Randomi
American Economic Journal: Applied Economics 2021 · pkg 3478
-
written as
ln_iv_price(3),ln_iv_price_DebtLong(2),ln_iv_price_Equity(2),ln_tariff_iv(2),price(2)all 65 packages →4 examples in the code
- Complete Pass-Through in Levels
Quarterly Journal of Economics 2026 · pkg 7364
code/manufacturing_passthrough_regs_vRepl.R:170 ·
wb_commodity_factor*sic_factor*L1_material_sharefeols(D1_log_piship_cpi ~ 1 | sic + year | D1_log_pimat_cpi*L1_material_share ~ wb_commodity_factor*sic_factor*L1_material_share, data=nber_ces, cluster=c("year","sic")), - Buyers’ Sourcing Strategies and Suppliers’ Markups in Bangladeshi Garments
Quarterly Journal of Economics 2023 · pkg 7525
Replication_Package_for_Online_Publication_1_Code_Estimation_Elasticities.do:55 ·
ln_cotton_price_x_ratecapture ivreghdfe ln_WR_o ( ${endogenous} ${exogenous} = ${instrument} ln_cotton_price_x_rate c.ln_cotton_price_x_rate#i1.numf_orig ) /// if SAMPLE_THETA==1, abs(${fes})As we read it — macros filled in / loop expanded (an interpretation, not the file's text):capture ivreghdfe ln_WR_o ( ln_q_sbjo ln_p_inpf_sbjo = ln_q_sbq_inst3b ln_cotton_price_x_rate c.ln_cotton_price_x_rate#i1.numf_orig ) if SAMPLE_THETA==1, abs(gr_sjt)
- Imports, Exports, and Earnings Inequality: Measures of Exposure and Estimates of Incidence
Quarterly Journal of Economics 2022 · pkg 7540
ivreghdfe `oil' `extra_controls' `balanced_Y' [aw=`win_Y'], a(`base_FEs') `cluster'
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivreghdfe lx_fn (lwage = exp_iv_f_oil imp_iv_f) c.ee_f_t0#i.year c.ie_f_t0#i.year if samp_est_all==1 [aw=weight], a(id_f firm_year) cluster(id_f)
- Global Trade and the Maritime Transport Revolution
Review of Economics and Statistics 2010 · pkg 13226
transport_web.do:91 ·
logcoalxtivreg2 logaverage loggdpsum logsprod logavertar gold ervol decade_1 decade_2 decade_3 decade_4 decade_5 (freight=L1.(log_steam_tonnage log_sail_tonnage distsailtonnage diststeamtonnage) L2.(log_stea …
typed from its definition at transport_web.do:51:log(coal_prices)
- Complete Pass-Through in Levels
Quarterly Journal of Economics 2026 · pkg 7364
-
written as
2tor(r_max)km_in,Bantu_Distance,Dist_Bound_Verdun,Distance_Bantu_bin_W,GRtot100plus_dist_INSTall 59 packages →4 examples in the code
- Owner Incentives and Performance in Healthcare: Private Equity Investment in Nursing Homes
Review of Financial Studies 2024 · pkg 121
Figures.do:365 ·
diff_dist_modivreghdfe mortality_`durn' `x' (peind = `z') , absorb(facid bene_hrr#year) tol(1e-6) accel(sd) cluster(facid)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivreghdfe mortality_90 female married dual black age female_age gp_old_1 gp_old_2 gp_old_3 gp_old_4 gp_old_5 gp_old_6 gp_old_7 gp_old_8 gp_old_9 gp_old_10 gp_old_11 gp_old_12 gp_old_13 gp_old_14 gp_ol …
- Trading Nontradables: The Implications of Europe’s Job-Posting Policy
Quarterly Journal of Economics 2024 · pkg 7539
Replication_package_code_Fig5_Tab1.do:772 ·
logdistanceivreg2 deltadom20032015 (logexposure_post_pp=logdistance) [aw=pop2003], ro first
typed from its definition at Replication_package_code_Fig5_Tab1.do:770:log(distancenms2) - How Merchant Towns Shaped Parliaments: From the Norman Conquest of England to the Great Re
American Economic Review 2022 · pkg 11299
AER Replication Files/1_AMV_AER_Main.do:1525 ·
inter_royal_navigable_river/*6*/eststo: ivreg2 Parliament_1348 (grant_farm_1348=inter_royal_navigable_river inter_royal_seacoast inter_royal_Roman_road) navigable_river seacoast Roman_road royal_borough if insample_pre1348==1, …
- Community Colleges and Upward Mobility
American Economic Review 2022 · pkg 11321
prog/overid.do:37 ·
z2ivreg2 `Y' $CONTROLS (d0 d4 = z2 z4), cluster(campusyear)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivreg2 `Y' i.female i.economic i.year10 i.ethnic i.cz i.ulocal c.hoodfactor_100 c.hoodfactor_100#c.hoodfactor_100 c.hoodfactor_100#c.hoodfactor_100#c.hoodfactor_100 c.hsoilgas_100 c.hsoilgas_100#c.hso …
typed from its definition at prog/create_analysis.do:17:miles2
- Owner Incentives and Performance in Healthcare: Private Equity Investment in Nursing Homes
Review of Financial Studies 2024 · pkg 121
-
written as
GM_hat2(2),(i.INS#c.phat_f_prc c.INS2#c.phat_f_prc#c.ln_pred_p_prc)#QT_risk,1.cocaine_producer_o#c.predicted_immig_l10y2001,1.cocaine_producer_o#c.predicted_immig_l10y2001#c.predicted_immig_l10y2001,1.cocaine_producer_o#c.predicted_immig_l10y2011_rall 56 packages →4 examples in the code
- Digitalization and Retirement Contribution Behavior: Evidence from Administrative Data
Review of Financial Studies 2024 · pkg 92
ReplicationRFS/codes/3_RCT_main.do:63 ·
appuser_predeststo LATE_dummy: ivregress 2sls buyin_dummy (appuser = appuser_pred) $controls_a , vce(cluster id)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo LATE_dummy: ivregress 2sls buyin_dummy (appuser = appuser_pred) male log_wage age age_2 fund i.mstat log_tenure i.year , vce(cluster id)
- Institutional Corporate Bond Pricing
Review of Financial Studies 2026 · pkg 147
ReplicationCodes_ICBP_Estimation_01_ss.do:231 ·
LNoutweight_conditional_hat1eststo: ivreghdfe LNweight_assetclass (LNoutweight_conditional1 LNoutweight_conditional2 = LNoutweight_conditional_hat1 LNoutweight_conditional_hat2) [aw=aum_tot1] if type_new2==`i', a(fundid) cl(fund …
- Imports, Exports, and Earnings Inequality: Measures of Exposure and Estimates of Incidence
Quarterly Journal of Economics 2022 · pkg 7540
ivreghdfe `spec' [aw=weight], a(`base_FEs') `cluster'
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivreghdfe lwage (hat_w_ree_p1 = hat_w_reeiv_p1) [aw=weight], a(year factor_id) cluster(factor_id)
- The Other Great Migration: Southern Whites and the New Right
Quarterly Journal of Economics 2023 · pkg 7541
BFFPT-QJE2023-Replication/do-files/1e_longrun_presidential_elections.do:1036 ·
c.iv_mig_hat1_00_2#i.voteyearivreghdfe Prep (c.pct_Southerners_white#i.voteyear = c.iv_mig_hat1_00_2#i.voteyear) if year==1940, cluster(km_grid) a(icpsrfip voteyear stateyear dummy_trunmig_hat1_00_2)
- Digitalization and Retirement Contribution Behavior: Evidence from Administrative Data
Review of Financial Studies 2024 · pkg 92
-
written as
Ireland_imm_perc_1920_Gamanj(2),colony(2),legor_fr(2),legor_ge(2),st_logTotalPop_1920_Gamanj(2)all 46 packages →4 examples in the code
- War, Socialism, and the Rise of Fascism: An Empirical Exploration
Quarterly Journal of Economics 2022 · pkg 7438
do_tables_Tab_A3_A13-A15_A21.do:428 ·
z_excess_mf1918ivreg2 `depvar' (z_psu1919_vv=z_excess_mf1918) `cntls_excess_spec`i'', partial(province*) cl(circondario1921)
- The Macroeconomic Consequences of Exchange Rate Depreciations
Quarterly Journal of Economics 2025 · pkg 7659
Replication/Empirics/Stata_Code/subfile/sub_main_regression_loop.do:642 ·
dlogUS_colonized_by_Franceivreghdfe dlog`t'_`var' (peg_dlogUS = $instruments ) `controls_compile' [aw = $weight] if out_`t'_`var' == 0 $time_condition & region == 1, $absorb_set vce(cluster Country_Code Time_Period)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivreghdfe dlog`t'_`var' (peg_dlogUS = dlogUS_colonized_by_France dlogUS_colonized_by_UK dlogUS_colonized_by_Spain dlogUS_colonized_by_others ) peg_USD L`L'_dlog0_`var' L`L'_`convar' lag1_peg_dlogUS la …
- Cultural diversity and economic growth: Evidence from the US during the age of mass migrat
European Economic Review 2013 · pkg 11866
Replication_Files(EER_D_12_00583R2)/Replication_Files(EER_D_12_00583R2)/data(EER_D_12_00583R2)/culturaldiversity(EER_D_12_00583R2).do:111 ·
FRACT_NFB1870xi: ivreg2 totva_d5 (RQ_NFBd5 FRACT_NFBd5 = FRACT_NFB1870 RQ_NFB1870 FRhat_d5 POLhat_d5) i.state urb_1870 totpop_d5 lnwforce_1870pc totpop_1870 Gini_1870 mfct_share1870 totva_1870 rail_1870 phi1870_1 …
- Does foreign aid harm political institutions?
Journal of Development Economics 2016 · pkg 11898
xi: ivreg2 d.(calpha) l.(calpha) (aidGDP = colony l.rc_wdi_lifexp l.recipientPop_log) `controls' len D_*, r endog(aidGDP) liml
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):xi: ivreg2 d.(calpha) l.(calpha) (aidGDP = colony l.rc_wdi_lifexp l.recipientPop_log) *_mean len D_*, r endog(aidGDP) liml
- War, Socialism, and the Rise of Fascism: An Empirical Exploration
Quarterly Journal of Economics 2022 · pkg 7438
-
written as
z(2),Av_PolIns,Continuation_Bias_SD,Jackknife,Zall 44 packages →4 examples in the code
- Dominant Currencies: How Firms Choose Currency Invoicing and Why it Matters
Quarterly Journal of Economics 2022 · pkg 7412
eststo col1: ivreghdfe Ix mphi_xeu lnmemp ms (mshcompetitor_other = IVsh_US IVsh_CHN IVsh_other lncomp_memp comp_mphi_xeu ), absorb(cty_num hs4 date) cluster(vat) first savefirst savefprefix(col1_fs_ …
typed from its definition at DataReplication_dofiles_data_competitor_instruments.do:54 (via comp_memp):(totvalue_memp - value_memp)/(totvalue - value) - Selection with Variation in Diagnostic Skill: Evidence from Radiologists
Quarterly Journal of Economics 2022 · pkg 7483
quietly ivregress 2sls f alphahat (d = d_jk) if rank <= `i', small cluster(id)
typed from its definition at source/analysis/Rad_PlotControlSkill.do:12:(total_d - d) / (n - 1) - The Morale Effects of Pay Inequality
Quarterly Journal of Economics 2018 · pkg 7574
replication_code_main_forsubmission.do:827 ·
peer_VEjackxi: ivregress 2sls attendance VE_jack i.numsame i.month i.day_centered (peer_attend = peer_VEjack) if Het==0, cl(team_id) first
- Eviction and Poverty in American Cities
Quarterly Journal of Economics 2024 · pkg 7602
0_Code_3_regressions_ivols_Cook_hmis_regs_iv_ols.do:78 ·
loo_vc_ivsamp100ivregress 2sls `var'`rng' i.$fe $controls (evicted=$instrument) if `pop'==`popval', r cluster($cluster_iv)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivregress 2sls `var'`rng' i.districtXyearXquarter $controls (evicted=loo_vc_ivsamp100) if `pop'==`popval', r cluster(judgeXyear)
- Dominant Currencies: How Firms Choose Currency Invoicing and Why it Matters
Quarterly Journal of Economics 2022 · pkg 7412
-
written as
d_tradeotch_pw_lag(5),(c.denial_rate)#c.d_tradeotch_pw_lag,(c.ln_real_rentgrs c.Llnchg_real_rentgrs)#c.d_tradeotch_pw_lag,(c.sh_emp_manuf)#c.d_tradeotch_pw_lag,(c.sh_poverty_status c.lnmn_inc_invst)#c.d_tradeotch_pw_lagall 42 packages →4 examples in the code
- Shared Destinies? Small Banks and Small Businesses
Review of Financial Studies 2025 · pkg 200
BankDeposits.do:58 ·
bank_bartikGS1eststo: ivreg2 bank_lndep (bank_gSmallFirm1 = bank_bartikGS1 ) year_* if `filterbus', cluster(cluster3)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: ivreg2 bank_lndep (bank_gSmallFirm1 = bank_bartikGS1 ) year_* if abs(bank_busdep)<1 & abs(bank_hhdep)<1 & year>2013 & asset<10000000 & bank_busdep!=0 & L.busdep!=., cluster(cluster3)
- The Evolution of Access to Public Accommodations in the United States
Quarterly Journal of Economics 2023 · pkg 7536
Do_Files_CJLR_GreenBooks_QJE_Rep.do:866 ·
a_bartikshock4050eststo main_iv_hotel_bartik: ivreg2 a_d_gbhotel4050 (a_d_blackshr4050 = a_bartikshock4050) i.stateid if num_hotel_CoBab1935 != . & us_region != "South", first
- The Slope of the Phillips Curve: Evidence from U.S. States
Quarterly Journal of Economics 2022 · pkg 7671
code_to_share_regressions_cs.do:153 ·
l4.d20_qt_bartik_saeststo: ivreghdfe infl_reg_sign (L4.mean_une = L4.d20_qt_bartik_sa) L4.rp, absorb(i.statecode i.date) cluster(statecode)
- Trade with Nominal Rigidities: Understanding the Unemployment and Welfare Effects of the C
Journal of Political Economy 2026 · pkg 7732
Empirics_codes_3-coefs_graphs_decadal.do:117 ·
d_tradeotch_pw_lageststo mp_2000_$i : qui ivreg2 d_sh_${outcome}_$i $controls (d_tradeusch_pw=d_tradeotch_pw_lag) [aw=timepwt48], cluster(statefip)As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo mp_2000_`i' : qui ivreg2 d_sh_`outcome'_`i' l_shind_manuf_cbp l_sh_popedu_c l_sh_popfborn l_sh_empl_f l_sh_routine33 l_task_outsource reg* t2 (d_tradeusch_pw=d_tradeotch_pw_lag) [aw=timepwt48], …
- Shared Destinies? Small Banks and Small Businesses
Review of Financial Studies 2025 · pkg 200
-
written as
above(5),above_cutoff(2),0.cp#female#reltime#reformyear#c.quota,1.above,1.above#i.schoolall 39 packages →4 examples in the code
- O Brother, Where Start Thou? Sibling Spillovers on College and Major Choice in Four Countr
Quarterly Journal of Economics 2021 · pkg 7372
qje_replication_files/chi-cro/table3_cl.do:65 ·
above_cutoffivreghdfe `choice'_`level' `covs' (enrolls_old = above_cutoff) if `if'
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivreghdfe `choice'_`level' c.score_rd c.score_rdc (enrolls_old = above_cutoff) if `if' & score_rd >= -1*`bw_`level'' & score_rd <= `bw_`level'', absorb(i.year i.mcfe) cluster(family_id) first ffirst s …
- Long-Range Growth: Economic Development in the Global Network of Air Links
Quarterly Journal of Economics 2018 · pkg 7481
Table_7.do:31 ·
shareEI_below6000_w500ivreg2 zcompany_nr_dist6000 (z_EIGEN_2014 z_EIGEN_2014_X10=shareEI_below6000_w500 shareEI_below6000_w500_X10) $CONTROLS0_EI $TZONE_DistEq $NLPOP819 $CONTROLS1989, cl(countrycode) ffirst
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivreg2 zcompany_nr_dist6000 (z_EIGEN_2014 z_EIGEN_2014_X10=shareEI_below6000_w500 shareEI_below6000_w500_X10) EIGEN89_55to65 regdum* timezone_fullhours ldist_eq Lights92_025grid pop90_025grid z_EIGEN_ …
- Cognitive Endurance As Human Capital [∗]
Quarterly Journal of Economics 2025 · pkg 7486
do/Table 7.do:96 ·
above_cutoffeststo reg`i': ivreg2 question_correct /// `running`n'' pred_decline3 /// (grade grade_pred_dec3=above_cutoff above_preddec3) /// if totz!=. [pw=weight1], cl(stude …As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo reg1: ivreg2 question_correct `running`n'' pred_decline3 (grade grade_pred_dec3=above_cutoff above_preddec3) if totz!=. [pw=weight1], cl(student_id)
- Nation Building Through Foreign Intervention: Evidence from Discontinuities in Military St
Quarterly Journal of Economics 2018 · pkg 7514
rd_reg.do:3 ·
belowquietly ivregress 2sls `outcome' (fr_strikes_mean=below) md_* ab bc cd de i.qdate vmb22-vt54 [aw=oweight20], nocons robust cluster(villageid)
- O Brother, Where Start Thou? Sibling Spillovers on College and Major Choice in Four Countr
Quarterly Journal of Economics 2021 · pkg 7372
-
written as
gust(2),rain(2),thunder(2),abs_spei,adverse_weatherall 22 packages →4 examples in the code
- War, Socialism, and the Rise of Fascism: An Empirical Exploration
Quarterly Journal of Economics 2022 · pkg 7438
do_tables_Tab_A3_A13-A15_A21.do:440 ·
z_rain1919ivreg2 `depvar' (z_psu1919_vv=z_rain1919) z_rain_var `cntls_spec`i'', partial(d_reg* province* z_lpop1911 z_lpop2 z_lpop3 z_lpop4) cl(circondario1921 cl1_stn1919)
- Policy Experimentation in China: The Political Economy of Policy Learning
Journal of Political Economy 2025 · pkg 7717
ivreghdfe rollout gdppc_growth (blank = rain gust thunder rainI gustI thunderI), a(city year name) vce(cluster code) first
- Economic Determinants of Land Invasions
Review of Economics and Statistics 2010 · pkg 13182
InvasionsReplication.do:60 ·
rain_monthlyxtivreg2 occs_0_1 (ag_income=rain_monthly) logpop _T*, cluster(code) fe
- The Effect of Microinsurance on Economic Activities: Evidence from a Randomized Field Expe
Review of Economics and Statistics 2015 · pkg 13190
sow_appendix.do:62 ·
snow_groupd2ivreg sow3 snow sow0 (insuredpig snow_insured =groupd2-groupd3 snow_groupd2 snow_groupd3) towndummy* ,robust cluster(townid)
- War, Socialism, and the Rise of Fascism: An Empirical Exploration
Quarterly Journal of Economics 2022 · pkg 7438
-
written as
i.casemanagerstaffid(2),Leniency2,Leniency2_std,Zb,dommernr_ext1_ctype_scoreall 15 packages →4 examples in the code
- Eviction and Poverty in American Cities
Quarterly Journal of Economics 2024 · pkg 7602
0_Code_3_regressions_ivols_Cook_experian_regs_iv_ols.do:104 ·
stringency_n100_looivregress 2sls `var'_`rng' $controls `lags' i.$fe (evicted=$instrument) if `pop'==`popval' & samplerestriction==1, r cluster($cluster_iv)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivregress 2sls `var'_`rng' $controls `var'_b9_16 `var'_b9_16_miss `var'_b9 `var'_b10 `var'_b11 `var'_b12 `var'_b9_miss `var'_b10_miss `var'_b11_miss `var'_b12_miss i.districtXquarter (evicted=stringen …
- Racial Bias in Bail Decisions
Quarterly Journal of Economics 2018 · pkg 7603
results_qje_final.do:425 ·
judgeiv_bail_met_ever_rs_n(loop-expanded: z=judgeiv_bail_met_ever_rs; endog=bail_met_ever; y=recid_arrest_onbail)ivreg2 `y' (`endog'_n `endog'_b = `z'_n `z'_b) $x_regcrime_full fe_* bfe_* , r cluster($clusteroption)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivreg2 `y' (`endog'_n `endog'_b = `z'_n `z'_b) cr_* male* r_a_* prior_offender_1year* n_counts* any_drug* any_dui* any_violent* any_property* prior_recid_onbail_1year* prior_fta_1year* missing_prior_f …
typed from part of its name - Halfway Home? Residential Housing and Reincarceration
American Economic Journal: Applied Economics 2023 · pkg 11711
Stata-Do-Files/step05_Main_Analysis.do:602 ·
i.casemanagerstaffidqui ivregress 2sls recid_all i.`fe_var' (Resi_File = i.casemanagerstaffid) if `group' == 1 , vce(cluster casemanagerstaffid)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui ivregress 2sls recid_all i.fac_manager_year (Resi_File = i.casemanagerstaffid) if `group' == 1 , vce(cluster casemanagerstaffid)
- Assessing Human Information Processing in Lending Decisions: A Machine Learning Approach
Journal of Accounting Research 2022 · pkg 12630
model.do:125 ·
officer_leniencyivregress 2sls profit2 (loan_size_signed = officer_leniency), /// first vce(cluster audit_empname_num)
- Eviction and Poverty in American Cities
Quarterly Journal of Economics 2024 · pkg 7602
1441 packages (82%) have an instrument no type reads.