Instrumental variables
This design across fields
| Field | packages | main clustering (of those that cluster) | winsorize / trim | checks |
|---|---|---|---|---|
| All fields | 1899 | author-named unit 44%; unspecified id (id, i, group...) 11%; county / city / district 6%; state / province 6% (n=1314) | 24% | first-stage / weak-instrument F reported 47%; weak-IV-robust inference 3% |
| Finance | 241 | author-named unit 23%; firm 9%; county / city / district 9%; unspecified id (id, i, group...) 8% (n=169) | 47% | first-stage / weak-instrument F reported 38%; weak-IV-robust inference 2% |
| Accounting | 7 thin | author-named unit 57%; firm 14%; two-way: author-named unit + author-named unit 14%; unspecified id (id, i, group...) 14% (n=7) | 71% | first-stage / weak-instrument F reported 43%; weak-IV-robust inference 0% |
| Economics | 1642 | author-named unit 47%; unspecified id (id, i, group...) 12%; state / province 6%; county / city / district 6% (n=1134) | 20% | first-stage / weak-instrument F reported 48%; weak-IV-robust inference 3% |
| Other fields | 9 thin | author-named unit 75%; two-way: author-named unit + time 25% (n=4) | 0% | first-stage / weak-instrument F reported 44%; weak-IV-robust inference 0% |
The typical package, and three that differ
Typical = the package that makes the most of this cell's modal choices
(ivreg2, clustered by county / city / district, time fixed effects,
no winsorizing, drops missing rows) —
it matches 6 of 6. Each contrast takes the second most common choice on one dimension.
- commands
ivreg2- clusters by
- county / city / district
- fixed effects
- time
- outliers
- no winsorizing / trimming found
- missing values
- drop rows with missing values
- sample years
- 2003–2004 (as on the package page)
- checks
- none of the design's checks found
- commands
ivreg2,ivregress- clusters by
- state / province
- fixed effects
- time
- outliers
- no winsorizing / trimming found
- missing values
- drop rows with missing values; replace missing with another value (imputation)
- sample years
- …–1980 (as on the package page)
- checks
- first-stage / weak-instrument F reported
- commands
ivreg2- clusters by
- county / city / district
- fixed effects
- state / province
- outliers
- no winsorizing / trimming found
- missing values
- drop rows with missing values; replace missing with zero (imputation); replace missing with another value (imputation); interpolate missing values
- sample years
- …–1910 (as on the package page)
- checks
- first-stage / weak-instrument F reported; over-identification test
- commands
ivreghdfe- clusters by
- county / city / district
- fixed effects
- bank + county / city / district + author-named unit
- outliers
- no winsorizing / trimming found
- missing values
- drop rows with missing values; replace missing with zero (imputation)
- checks
- none of the design's checks found
Sample screens
-
exclude financials1% · 19
4 examples in the code
- Leaky Director Networks and Innovation Herding
Review of Financial Studies 2026 · pkg 172
drop if sic3>=600 & sic3<=699
- Anatomy of Corporate Borrowing Constraints
Quarterly Journal of Economics 2021 · pkg 7457
drop if sic>=6000 & sic<7000
- Asset Specificity of Nonfinancial Firms
Quarterly Journal of Economics 2023 · pkg 7590
drop if sic>=6000 & sic<7000
- Banking Networks and Economic Growth: From Idiosyncratic Shocks to Aggregate Fluctuations
American Economic Journal: Macroeconomics 2026 · pkg 11744
drop if sic>=6000 & sic <6800
- Leaky Director Networks and Innovation Herding
Review of Financial Studies 2026 · pkg 172
-
keep only manufacturing1% · 13
4 examples in the code
- Benign Effects of Automation: New Evidence from Patent Texts
Review of Economics and Statistics 2023 · pkg 13143
keep if sic3>=200 & sic3<400
- Disentangling The Effects Of The 2018–2019 Tariffs On A Globally Connected U.S. Manufactur
Review of Economics and Statistics 2026 · pkg 13167
keep if substr(naics_code,1,1)=="3"
- Crossing the Credit Channel: Credit Spreads and Firm Heterogeneity
American Economic Journal: Macroeconomics 2024 · pkg 17186
keep if sectordum4==1
- From Blue- to Steel-Collar Jobs: The Decline in Employment Gaps?
American Economic Journal: Macroeconomics 2025 · pkg 17281
keep if sic>=2000&sic<=3999
- Benign Effects of Automation: New Evidence from Patent Texts
Review of Economics and Statistics 2023 · pkg 13143
-
common shares only (shrcd 10/11)1% · 10
4 examples in the code
- Scale or Yield? A Present-Value Identity
Review of Financial Studies 2024 · pkg 149
keep if inlist(exchcd,1,2,3) & inlist(shrcd,10,11)
- Who Clears the Market When Passive Investors Trade?
Review of Financial Studies 2026 · pkg 286
keep if shrcd>=10 & shrcd<=11
- Belief Overreaction and Stock Market Puzzles
Journal of Political Economy 2024 · pkg 7845
keep if (shrcd==10 | shrcd==11)
- Finance without exotic risk
Journal of Financial Economics 2025 · pkg 15175
keep if shrcd==10 | shrcd==11
- Scale or Yield? A Present-Value Identity
Review of Financial Studies 2024 · pkg 149
-
exclude utilities0% · 9
4 examples in the code
- Leaky Director Networks and Innovation Herding
Review of Financial Studies 2026 · pkg 172
drop if utilities==1
- Monetary Policy, Markup Dispersion, and Aggregate TFP
Review of Economics and Statistics 2024 · pkg 13589
drop if naicsq2 == 22 // utilities
- Investment Functions with q in the Presence of Unobserved Persistent Shocks
Journal of Financial and Quantitative Analysis 2026 · pkg 14131
drop if sic>=4900&sic<=4999
- Crossing the Credit Channel: Credit Spreads and Firm Heterogeneity
American Economic Journal: Macroeconomics 2024 · pkg 17186
drop if sic>=4900 & sic<=4999
- Leaky Director Networks and Innovation Herding
Review of Financial Studies 2026 · pkg 172
-
NYSE / AMEX / Nasdaq only (exchcd 1-3)0% · 8
4 examples in the code
- Scale or Yield? A Present-Value Identity
Review of Financial Studies 2024 · pkg 149
keep if inlist(exchcd,1,2,3) & inlist(shrcd,10,11)
- Who Clears the Market When Passive Investors Trade?
Review of Financial Studies 2026 · pkg 286
keep if exchcd>=1 & exchcd<=3
- Belief Overreaction and Stock Market Puzzles
Journal of Political Economy 2024 · pkg 7845
keep if (exchcd>=1 & exchcd<=3)
- Artificial intelligence, firm growth, and product innovation
Journal of Financial Economics 2024 · pkg 14187
keep if exchcd>0 & exchcd<4 & ( shrcd<14 | shrcd==18 | shrcd==31 )
- Scale or Yield? A Present-Value Identity
Review of Financial Studies 2024 · pkg 149
-
exclude public administration / unclassified0% · 8
4 examples in the code
- Anatomy of Corporate Borrowing Constraints
Quarterly Journal of Economics 2021 · pkg 7457
drop if sic1==9
- Asset Specificity of Nonfinancial Firms
Quarterly Journal of Economics 2023 · pkg 7590
drop if sic2>=90
- Investment Functions with q in the Presence of Unobserved Persistent Shocks
Journal of Financial and Quantitative Analysis 2026 · pkg 14131
drop if sic>=9000
- Crossing the Credit Channel: Credit Spreads and Firm Heterogeneity
American Economic Journal: Macroeconomics 2024 · pkg 17186
drop if sic>=9000
- Anatomy of Corporate Borrowing Constraints
Quarterly Journal of Economics 2021 · pkg 7457
-
exclude manufacturing0% · 3
3 examples in the code
- Benign Effects of Automation: New Evidence from Patent Texts
Review of Economics and Statistics 2023 · pkg 13143
drop if sic3>=200 & sic3<400
- Disentangling The Effects Of The 2018–2019 Tariffs On A Globally Connected U.S. Manufactur
Review of Economics and Statistics 2026 · pkg 13167
keep if substr(naics_code,1,1)~="3"
- The Missing Inflation Puzzle: The Role of the Wage‐Price Pass‐Through
Journal of Money, Credit and Banking 2022 · pkg 49230
drop if substr(naics_str, 1, 1) == "3"
- Benign Effects of Automation: New Evidence from Patent Texts
Review of Economics and Statistics 2023 · pkg 13143
-
keep only financials0% · 3
3 examples in the code
- The Fall of the Labor Share and the Rise of Superstar Firms
Quarterly Journal of Economics 2020 · pkg 7546
keep if sic>=6000 & sic<=6799
- Financial Intermediaries and the Macroeconomy: Evidence from a High-Frequency Identificati
The Economic Journal 2025 · pkg 19152
keep if naics2==52
- The Missing Inflation Puzzle: The Role of the Wage‐Price Pass‐Through
Journal of Money, Credit and Banking 2022 · pkg 49230
keep if substr(naics, 1, 2) == "52"
- The Fall of the Labor Share and the Rise of Superstar Firms
Quarterly Journal of Economics 2020 · pkg 7546
-
exclude financials + utilities0% · 2
2 examples in the code
- The Effect of the Credit Crunch on Output Price Dynamics: The Corporate Inventory and Liqu
Quarterly Journal of Economics 2021 · pkg 7522
drop if (sic >= 6000 & sic <= 6999) | (sic >=4900 & sic <=4999)
- Strategic complementarity in labor demand: Evidence from US industry leading firms
Review of Economic Dynamics 2025 · pkg 49407
drop if (sic>=4900 & sic<=4999) | (sic>=6000 & sic<=6999)
- The Effect of the Credit Crunch on Output Price Dynamics: The Corporate Inventory and Liqu
Quarterly Journal of Economics 2021 · pkg 7522
-
low-price stocks dropped (price < $1-$10)0% · 2
2 examples in the code
- A Catering Theory of Earnings Guidance: Empirical Evidence and Stock Market Implications
Journal of Financial and Quantitative Analysis 2026 · pkg 14132
guidance <- subset(guidance, price_prev >= 10)
- Taking sides on return predictability
Journal of Financial Economics 2025 · pkg 14258
drop if abs(prc_lag) < 1
- A Catering Theory of Earnings Guidance: Empirical Evidence and Stock Market Implications
Journal of Financial and Quantitative Analysis 2026 · pkg 14132
-
NYSE / AMEX / Nasdaq / Arca only (exchcd 1-4)0% · 1
1 example in the code
- Bonds versus Equities: Information for Investment
The Journal of Finance 2024 · pkg 16015
keep if exchcd >=0 & exchcd <=17
- Bonds versus Equities: Information for Investment
The Journal of Finance 2024 · pkg 16015
-
keep only utilities0% · 1
1 example in the code
- The Missing Inflation Puzzle: The Role of the Wage‐Price Pass‐Through
Journal of Money, Credit and Banking 2022 · pkg 49230
keep if substr(naics, 1, 2) == "22"
- The Missing Inflation Puzzle: The Role of the Wage‐Price Pass‐Through
Journal of Money, Credit and Banking 2022 · pkg 49230
Share of 1899 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
448 of 1,899 packages (24%) winsorize or trim something: 393 winsorize, 97 trim, 71 by group (e.g. by year).
-
winsorize 1/9947% · 210
4 examples in the code
- The Rise of Finance Companies and FinTech Lenders in Small Business Lending
Review of Financial Studies 2022 · pkg 4
winsor2 loans_*_*, cuts(1 99) replace
- Steering a Ship in Illiquid Waters: Active Management of Passive Funds
Review of Financial Studies 2025 · pkg 9
winsor2 `var', c(1 99) replace
- Field of Study and Financial Problems: How Economics Reduces the Risk of Default
Review of Financial Studies 2023 · pkg 109
replace `x' = r(p1) if `x'<r(p1) & !mi(`x')
- The Impact of the Opioid Crisis on Firm Value and Investment
Review of Financial Studies 2025 · pkg 133
winsor `var', gen(`var'w) p(0.01)
- The Rise of Finance Companies and FinTech Lenders in Small Business Lending
Review of Financial Studies 2022 · pkg 4
-
winsorize none/9919% · 86
4 examples in the code
- Who Clears the Market When Passive Investors Trade?
Review of Financial Studies 2026 · pkg 286
winsor2 vw_turn,cuts(0 99) replace
- Macroeconomic Expectations and Credit Card Spending
Review of Financial Studies 2026 · pkg 301
cap winsor mincome, gen (mincome_win) p(0.01) highonly
- Growing Markets through Business Training for Female Entrepreneurs: A Market-Level Randomi
American Economic Journal: Applied Economics 2021 · pkg 3478
replace sales_trunc=r(p99) if sales_trunc>r(p99) & sales_trunc~=.
- Excess Sensitivity of High-Income Consumers
Quarterly Journal of Economics 2018 · pkg 7398
replace cat`cat' = `r(p99)' if cat`cat'>`r(p99)'
- Who Clears the Market When Passive Investors Trade?
Review of Financial Studies 2026 · pkg 286
-
winsorize 5/9516% · 70
4 examples in the code
- Steering a Ship in Illiquid Waters: Active Management of Passive Funds
Review of Financial Studies 2025 · pkg 9
winsor2 Imp_allcash, cuts(5 95) replace
- Cross-Selling in Bank-Household Relationships: Mechanisms and Implications for Pricing
Review of Financial Studies 2026 · pkg 48
winsor2 number_banks_hhid, cuts(5 95) replace // Winsorize number of banks per hh_id
- Beliefs and Portfolios: Causal Evidence
Review of Financial Studies 2026 · pkg 276
winsor stockexp_post_avg if `okcond', gen(stockexp_post_avg_w) p(0.05)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):winsor stockexp_post_avg if stockexp_post_avg!=-9999 & stockexp_post_avg!=-9998 & stockexp_post_avg!=-9997 & stockexp_post_avg!=-6666, gen(stockexp_post_avg_w) …
- Growing Markets through Business Training for Female Entrepreneurs: A Market-Level Randomi
American Economic Journal: Applied Economics 2021 · pkg 3478
replace prodcostchange=r(p5) if prodcostchange<r(p5) & round==4
- Steering a Ship in Illiquid Waters: Active Management of Passive Funds
Review of Financial Studies 2025 · pkg 9
-
trim 1/9914% · 62
4 examples in the code
- Collateral Effects: The Role of FinTech in Small Business Lending
Review of Financial Studies 2026 · pkg 205
winsor2 `x', suffix(_trim) cut(1 99) trim
- Who Clears the Market When Passive Investors Trade?
Review of Financial Studies 2026 · pkg 286
winsor2 comp_ratio ypch_firms_comp,cuts(1 99) trim replace
- The Rise of Market Power and the Macroeconomic Implications
Quarterly Journal of Economics 2020 · pkg 7519
drop if ss< ssp01 | ss> ssp99
- The Unequal Gains from Product Innovations: Evidence from the U.S. Retail Sector
Quarterly Journal of Economics 2019 · pkg 7579
drop if size1_amount<r(p1) | size1_amount>r(p99)
- Collateral Effects: The Role of FinTech in Small Business Lending
Review of Financial Studies 2026 · pkg 205
-
winsorize 1/99 by group10% · 44
4 examples in the code
- Institutional Corporate Bond Pricing
Review of Financial Studies 2026 · pkg 147
winsor2 LNoutweight_conditional_hat, replace cuts(1 99) by(date)
- Small Bank Lending in the Era of Fintech and Shadow Banks: A Sideshow?
Review of Financial Studies 2022 · pkg 148
winsor2 `1', cuts(1 99) by(year)
- Who Clears the Market When Passive Investors Trade?
Review of Financial Studies 2026 · pkg 286
winsor2 mom_12_2,cuts(1 99) replace by(ym)
- War Reparations, Structural Change, and Intergenerational Mobility
Quarterly Journal of Economics 2025 · pkg 7507
winsor2 horsepower, cuts(1 99) by(year)
- Institutional Corporate Bond Pricing
Review of Financial Studies 2026 · pkg 147
-
winsorize 0.5/99.56% · 28
4 examples in the code
- Finding Fortune: How Do Institutional Investors Pick Asset Managers?
Review of Financial Studies 2023 · pkg 229
winsor xret_style, gen(wxret_style) p(0.005)
- 3G Internet and Confidence in Government
Quarterly Journal of Economics 2021 · pkg 7447
winsor vote_incumbent_resid, gen(vote_incumbent_net) p(0.005)
- News Bias in Financial Journalists’ Social Networks
Journal of Accounting Research 2024 · pkg 12686
winsor relative, g(wrelative) p(0.005)
- Structural Change and Internal Labor Migration: Evidence from the Great Depression
Review of Economics and Statistics 2023 · pkg 13037
winsor lnpopulation_1920, gen(lnpopulation_1920w) p(.005)
- Finding Fortune: How Do Institutional Investors Pick Asset Managers?
Review of Financial Studies 2023 · pkg 229
-
winsorize none/956% · 28
4 examples in the code
- The Rise of Finance Companies and FinTech Lenders in Small Business Lending
Review of Financial Studies 2022 · pkg 4
winsor2 emptotal salesvol, cuts(0 95)
- Cross-Selling in Bank-Household Relationships: Mechanisms and Implications for Pricing
Review of Financial Studies 2026 · pkg 48
winsor2 depinc_lost, cuts(0 95) replace // Remove upper tail of deposit income lost to not overstate results due to meas …
- Macroeconomic Expectations and Credit Card Spending
Review of Financial Studies 2026 · pkg 301
winsor2 vardol`category'_pre12, cuts(`low_bound' 95) suffix(_w) label
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):winsor2 vardol`category'_pre12, cuts(0 95) suffix(_w) label
- The Effect of the Credit Crunch on Output Price Dynamics: The Corporate Inventory and Liqu
Quarterly Journal of Economics 2021 · pkg 7522
replace lenderhealth1 = r(p95) if lenderhealth1 > r(p95)
- The Rise of Finance Companies and FinTech Lenders in Small Business Lending
Review of Financial Studies 2022 · pkg 4
-
winsorize 2.5/97.54% · 18
4 examples in the code
- When Two Become One: Foreign Capital and Household Credit Expansion
Review of Financial Studies 2026 · pkg 256
winsor2 D3_NF_HH_v_Loans_RD_GDP D3_NF_RoTW_v_Loans_RD_GDP D3_NF_GG_v_Loans_RD_GDP D3_B_L_NonFiInLoans_GDP, cuts(2.5 97.5) suffix(_win)
- Who Clears the Market When Passive Investors Trade?
Review of Financial Studies 2026 · pkg 286
winsor2 `var'_bps, cuts(2.5 97.5)
- The Effects of Mandatory Profit-Sharing on Workers and Firms: Evidence from France
Quarterly Journal of Economics 2026 · pkg 7600
winso temp
- Asset-Based Microfinance for Microenterprises: Evidence from Pakistan
American Economic Review 2024 · pkg 11413
winsor2 /// bzpr* tfa* inv* VA* /// , replace cuts(2.5 97.5)
- When Two Become One: Foreign Capital and Household Credit Expansion
Review of Financial Studies 2026 · pkg 256
Share of the 448 packages that winsorize or trim (a package can use several cuts). Greyed: fewer than 10 packages.
Missing values
-
drop rows with missing values74% · 1408
4 examples in the code
- The Rise of Finance Companies and FinTech Lenders in Small Business Lending
Review of Financial Studies 2022 · pkg 4
drop if county==.
- Steering a Ship in Illiquid Waters: Active Management of Passive Funds
Review of Financial Studies 2025 · pkg 9
drop if !missing(firstdate_etf) | !missing(lastdate_etf)
- Tuition, Debt, and Human Capital
Review of Financial Studies 2023 · pkg 52
drop if perc_tuit==.
- Zombies at Large? Corporate Debt Overhang and the Macroeconomy
Review of Financial Studies 2022 · pkg 70
drop if missing(value)
- The Rise of Finance Companies and FinTech Lenders in Small Business Lending
Review of Financial Studies 2022 · pkg 4
-
replace missing with zero (imputation)55% · 1051
4 examples in the code
- The Rise of Finance Companies and FinTech Lenders in Small Business Lending
Review of Financial Studies 2022 · pkg 4
replace depsumbr1=0 if depsumbr1==.
- Steering a Ship in Illiquid Waters: Active Management of Passive Funds
Review of Financial Studies 2025 · pkg 9
replace COUNT_IMPUTED = 0 if missing(COUNT_IMPUTED)
- Tuition, Debt, and Human Capital
Review of Financial Studies 2023 · pkg 52
replace graduated_any=0 if graduated_any==.
- Health Care Costs and Corporate Investment
Review of Financial Studies 2024 · pkg 63
replace s_HHI=0 if s_HHI==.
- The Rise of Finance Companies and FinTech Lenders in Small Business Lending
Review of Financial Studies 2022 · pkg 4
-
replace missing with another value (imputation)52% · 982
4 examples in the code
- The Rise of Finance Companies and FinTech Lenders in Small Business Lending
Review of Financial Studies 2022 · pkg 4
replace bank =1 if ((strpos(modified_name,"bank") | strpos(modified_name,"banc"))) & bank ==.
- Tuition, Debt, and Human Capital
Review of Financial Studies 2023 · pkg 52
replace balance_year`x' = SL_totbal if year==entry_year+`y' & quarter==9 & balance_year`x'==. // if last quarter missing for some reason
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):replace balance_year`x' = SL_totbal if year==entry_year+`x'-1 & quarter==9 & balance_year`x'==.
- Zombies at Large? Corporate Debt Overhang and the Macroeconomy
Review of Financial Studies 2022 · pkg 70
replace source_equ = "eurostat" /// if !missing(busi_equ, busi_equ_eustat) & /// (missing(source_equ) | /// inlist(c,"Netherlands") /// … - Field of Study and Financial Problems: How Economics Reduces the Risk of Default
Review of Financial Studies 2023 · pkg 109
replace ansdage_2008 = ansdage if mi(ansdage_2008)
- The Rise of Finance Companies and FinTech Lenders in Small Business Lending
Review of Financial Studies 2022 · pkg 4
-
interpolate missing values20% · 386
4 examples in the code
- Steering a Ship in Illiquid Waters: Active Management of Passive Funds
Review of Financial Studies 2025 · pkg 9
tsfill
- Tuition, Debt, and Human Capital
Review of Financial Studies 2023 · pkg 52
tsfill, full
- Scale or Yield? A Present-Value Identity
Review of Financial Studies 2024 · pkg 149
tsfill
- International Portfolio Choice with Frictions: Evidence from Mutual Funds
Review of Financial Studies 2023 · pkg 188
tsfill, full
- Steering a Ship in Illiquid Waters: Active Management of Passive Funds
Review of Financial Studies 2025 · pkg 9
Share of 1899 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 estimation73% · 1314
- robust only (never clusters)14% · 260
- default iid only11% · 199
- other (HAC, bootstrap) only1% · 26
Of the 1,799 packages with a model that shows the design.
Main clustering level
-
author-named unitnames the reader has no word for, commonest first:
idstudy,codigo,dep,grid,ij,m_id,a7,address44% · 5784 examples in the code
- Tuition, Debt, and Human Capital
Review of Financial Studies 2023 · pkg 52
qui ivreghdfe `var' (tuition_bill = grade_change_2 grade_change_3 grade_change_4 ) /// , cl(cluster_college) a(college_fixed_effect entry_year) // grades … - Return Predictability, Expectations, and Investment: Experimental Evidence
Review of Financial Studies 2025 · pkg 105
quietly ivreghdfe invest (forecast = a) if (wave==1 | wave==2 | wave==3 | wave==4) & correct_flag==1 & per_predict==1, a(plabel order) vce(cluster order) //no c …
- Beyond Home Bias: International Portfolio Holdings and Information Heterogeneity
Review of Financial Studies 2022 · pkg 152
quietly eststo : ivreghdfe share_EEA_lt_mkt l_dist SFE_Y10 (FY10 SFE_Y10_FY10 = foreignnonbank SFE_Y10_foreignnonbank), absorb(CountryID#tq ID) cluster(bankcou …
- Shared Destinies? Small Banks and Small Businesses
Review of Financial Studies 2025 · pkg 200
eststo: 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 & …
- Tuition, Debt, and Human Capital
Review of Financial Studies 2023 · pkg 52
-
unspecified id (id, i, group...)11% · 147
4 examples in the code
- Digitalization and Retirement Contribution Behavior: Evidence from Administrative Data
Review of Financial Studies 2024 · pkg 92
eststo 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)
- Student Loans, Access to Credit, and Consumer Credit Demand
Review of Financial Studies 2024 · pkg 175
xtivreg `depvar'22 (tot_fedloans_22 = c.`inst'_`s'#c.ever_with_pub4_22) ever_with_pub4_22
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):xtivreg `depvar'22 (tot_fedloans_22 = c.`inst'_st_e_new#c.ever_with_pub4_22) ever_with_pub4_22 nocollege_22 degree_AS_22 degree_BA_22 degree_MA_22 degree_butunk …
- Effects of Credit Expansions on Stock Market Booms and Busts
Review of Financial Studies 2025 · pkg 196
ivreghdfe price590 (F.price590=f(2/3).d) d if vintage!=1 & vintage!=0 ,cl(code ) a(code date2)
- The Effects of Going Public on Firm Profitability and Strategy
Review of Financial Studies 2025 · pkg 203
qui xtivreg2 wroa (IPO_UK IPO_FR IPO_GE IPO_SE IPO_IT IPO_NO IPO_Oth=inst_UK inst_FR inst_GE inst_SE inst_IT inst_NO inst_Oth) /// deventyear2 deventyear3 dev …
- Digitalization and Retirement Contribution Behavior: Evidence from Administrative Data
Review of Financial Studies 2024 · pkg 92
-
county / city / district6% · 82
4 examples in the code
- The Rise of Finance Companies and FinTech Lenders in Small Business Lending
Review of Financial Studies 2022 · pkg 4
eststo p7: ivreghdfe share_07_160 `controls' (bank_change_tot_share = pre_crisis_bank_share), abs(state) cluster(county) first
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo p7: ivreghdfe share_07_160 unemp_rate_2002_2006 lfp_rate_2002_2006 est_2002_2006 wage_2002_2006 log_pop unemp_rate2005 lfp_rate2005 wage2005 (bank_change …
- Estimating General Equilibrium Spillovers of Large-Scale Shocks
Review of Financial Studies 2023 · pkg 29
ivreg y_1_spillover_x2 (x2 industry_mean_x2_1 = instrument industry_mean_instrument_1), cluster(county)
- The Impact of the Opioid Crisis on Firm Value and Investment
Review of Financial Studies 2025 · pkg 133
ivreghdfe emp (opioid=provprob), a(`fe') cluster(FIPS)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivreghdfe emp (opioid=provprob), a(gfe plantyp) cluster(FIPS)
- Credit Environment and Small Business Dynamics: Evidence from Establishment-Level Data
Review of Corporate Finance Studies 2023 · pkg 7317
ivreghdfe y_emp ($boom = $boom_iv), absorb(county#g_emp year) cluster(county)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivreghdfe y_emp (xboom 10.g_emp#c.xboom 50.g_emp#c.xboom = xboom_iv 10.g_emp#c.xboom_iv 50.g_emp#c.xboom_iv), absorb(county#g_emp year) cluster(county)
- The Rise of Finance Companies and FinTech Lenders in Small Business Lending
Review of Financial Studies 2022 · pkg 4
-
state / province6% · 77
4 examples in the code
- Health Care Costs and Corporate Investment
Review of Financial Studies 2024 · pkg 63
ivreghdfe `var' `controls' (log_prem_percapita= `health' `controls'), absorb(fyear gvkey) cluster(state_n)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivreghdfe `var' l1_firm_logat l1_firm_cash2lat l1_firm_netprofitmargin l1_firm_logppent l1_firm_q firm_logage l1_unemployment_rate l1_log_personalincome_adj (lo …
- Monetary Policy, Business Liquidity and Survival: Evidence from the Refinancing Channel
Review of Financial Studies 2023 · pkg 88
ivreghdfe win_loc_ret_chg (refi_pct_2009=pdum3) median_income2009_ln pop2010_ln percent_white2009 percent_black2009 if pdum2!=1 [aw=pop2010], absorb(state) …
- The Slope of the Phillips Curve: Evidence from U.S. States
Quarterly Journal of Economics 2022 · pkg 7671
eststo: 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
eststo 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_tradeusc …
- Health Care Costs and Corporate Investment
Review of Financial Studies 2024 · pkg 63
-
firm3% · 44
4 examples in the code
- Competition and Innovation Revisited: A Project-Level View
Review of Financial Studies 2025 · pkg 137
ivreghdfe xrdw_atw cr4 (liu liusq=lio liosq) ,abs(sic4 year segnum) vce(cluster gvkey)
- Collateral Effects: The Role of FinTech in Small Business Lending
Review of Financial Studies 2026 · pkg 205
eststo second: ivreghdfe lloan (p2pqtrcapturing=scoredeltapost) post volloanv $control_0 if deltaqdummy, cl(siren) a(qdate siren)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo second: ivreghdfe lloan (p2pqtrcapturing=scoredeltapost) post volloanv `"*_0 dum_*"' if deltaqdummy, cl(siren) a(qdate siren)
- The Product Market Effects of Index Inclusion
Review of Financial Studies 2026 · pkg 292
eststo: ivreghdfe d_price_ln_t_tp1 (d_qix = r_1_to_2 r_2_to_1) $running_3 $controls if share_product_module==`i', a(year#prod_cat year#industry) clus(firm) noco …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: ivreghdfe d_price_ln_t_tp1 (d_qix = r_1_to_2 r_2_to_1) d_total_mv_ln d_total_mv_ln_sq d_total_mv_ln_cu d_ff_rus band band_d02 if share_product_module==` …
- Managerial Ownership in a Private Firm Framework
Review of Corporate Finance Studies 2026 · pkg 7272
ivreghdfe `i' l_ln_assets l_ln_sales l_ppe_assets l_capex l_lev age l_sga_rev (l_ownership = bank1), a(year) cl(company) first
- Competition and Innovation Revisited: A Project-Level View
Review of Financial Studies 2025 · pkg 137
-
country3% · 39
4 examples in the code
- When Two Become One: Foreign Capital and Household Credit Expansion
Review of Financial Studies 2026 · pkg 256
xtivreg2 Fd3y (LD3_HH_RoTW_RD_GDP=LD3supply_GDP) LD3_HH_HH_RD_GDP LD3_HH_GG_RD_GDP LD3_B_L_NonFiInLoans_GDP LD3_CA_IFSorWEO_GDP /// l(1/3).d.lrgdp, fe clus … - Long-Range Growth: Economic Development in the Global Network of Air Links
Quarterly Journal of Economics 2018 · pkg 7481
ivreg2 zcompany_nr_dist6000 (z_EIGEN_2014 z_EIGEN_2014_X10=shareEI_below6000_w500 shareEI_below6000_w500_X10) $CONTROLS0_EI $TZONE_DistEq $NLPOP819 $CONTROLS1 …
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 …
- Induced Automation Innovation: Evidence from Firm-Level Patent Data
Journal of Political Economy 2025 · pkg 7801
ivreg2 z`v'4 (zISP4 = gISP) [aw = s_n], cluster(country)
- The Origin of the State: Land Productivity or Appropriability? Comment
Journal of Political Economy 2026 · pkg 7832
ivreg2 L_hier1 (cereals = std_diff) std_max i.dummy_continental3, cluster(iso)
- When Two Become One: Foreign Capital and Household Credit Expansion
Review of Financial Studies 2026 · pkg 256
-
two-way: author-named unit + author-named unitnames the reader has no word for, commonest first:
idstudy,codigo,dep,grid,ij,m_id,a7,address3% · 344 examples in the code
- Financing Competitors: Shadow Banks’ Funding and Mortgage Market Competition
Review of Financial Studies 2023 · pkg 190
eststo: ivreghdfe matched ln_hq_distance (geo_overlap_sd = overlap_iv_sd) , a(d_nmls d_id) cluster(NMLS rssdhcr)
- Migration, Specialization, and Trade: Evidence from Brazil’s March to the West
Journal of Political Economy 2025 · pkg 7684
ivreghdfe l_c_income (l_p_pop = livnoss100p_pop), absorb(FE_jkt FE_ijt) cluster(FE_jkt FE_it)
- (Re)scheduling pollution exposure: The case of surgery schedules
Journal of Public Economics 2023 · pkg 11342
ivreghdfe mortality $ctrlvar $weather (PM2_5_x=`x'_log) , a($`s') cluster(hos_id operat_date)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivreghdfe mortality i.age_bin male i.marriage allergy i.temp_b precipitation precipitation2 (PM2_5_x=`x'_log) , a($`s') cluster(hos_id operat_date)
- A Network of Thrones: Kinship and Conflict in Europe, 1495–1918
American Economic Journal: Applied Economics 2021 · pkg 11348
eststo: quietly ivreghdfe war (invpath=death5), a(pair year) cluster(C1 C2) savefirst savefprefix(first1);
- Financing Competitors: Shadow Banks’ Funding and Mortgage Market Competition
Review of Financial Studies 2023 · pkg 190
-
region / MSA / CZ2% · 30
4 examples in the code
- Small Bank Lending in the Era of Fintech and Shadow Banks: A Sideshow?
Review of Financial Studies 2022 · pkg 148
capture 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, …
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_ …
- Trading Nontradables: The Implications of Europe’s Job-Posting Policy
Quarterly Journal of Economics 2024 · pkg 7539
ivreg2 deltadom20032015 (logexposure_post_pp=logexposure_pre_pp) s_postable2003 s_ind2003 s_ouvrier [aweight=pop2003], ro first cl(cl)
- Immigration and Spatial Equilibrium: The Role of Expenditures in the Country of Origin
American Economic Review 2022 · pkg 11362
xi: ivreg2 share_imm (ln_locprice= WRLURI) i.year [aw=weight], robust cluster(metarea)
- Does generalized trust depend on income?
Economics Letters 2020 · pkg 12312
ivreg2 trust_change (lpc_inc_reg_y9_y8_regcpi08 = sic33_cens_empl sic35_cens_empl sic13_cens_empl) if year==2009, first cl(region)
- Small Bank Lending in the Era of Fintech and Shadow Banks: A Sideshow?
Review of Financial Studies 2022 · pkg 148
-
person2% · 28
4 examples in the code
- The Economic Consequences of Increasing Sleep Among the Urban Poor
Quarterly Journal of Economics 2021 · pkg 7344
eststo: ivreghdfe summary_index (`endogenous_vars' = `treatments') `covariates' summary_index_base `subset', cluster(pid) absorb(`factorcovariates')
- Cognitive Endurance As Human Capital [∗]
Quarterly Journal of Economics 2025 · pkg 7486
eststo reg`i': ivreg2 question_correct /// `running`n'' pred_decline3 /// (grade grade_pred_dec3=above_cutoff above_preddec3) /// …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)
- Online Tutoring by College Volunteers: Experimental Evidence from a Pilot Program
AEA Papers and Proceedings 2022 · pkg 11367
ivregress 2sls testscore_s math_s math_s_2 reading_s reading_s_2 math_s_imputed reading_s_imputed female Black Hispanic ell checc_control checc_KP ch …
- Dual returns to experience
Labour Economics 2023 · pkg 12454
xtivreg lnw (aexp_oec aexp_ftc tenure tenure_sq = dev_aexp_oec2 dev_aexp_ftc2 dev_tenure dev_tenure_sq) /// i.ed2 i.ed3 i.female i.sme i.young i.sk2 i.sk3 i. …
- The Economic Consequences of Increasing Sleep Among the Urban Poor
Quarterly Journal of Economics 2021 · pkg 7344
-
household2% · 21
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
ivreghdfe `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 …
- Wealth Taxation and Wealth Accumulation: Theory and Evidence From Denmark
Quarterly Journal of Economics 2020 · pkg 7497
xtivreg log_form yd* ( g_yd_* = t_yd_*) if treatmt_`stub'==1 | control_`stub'==1 , fe vce(cluster familie_id)
- The Mortgage Piggy Bank: Building Wealth Through Amortization
Quarterly Journal of Economics 2024 · pkg 7588
ivreghdfe wealth_15_14 (mtg_bal_repay_15_14 = treated) if sample_main, absorb(dummy) cluster(household_id)
- How Equality Created Poverty in Preindustrial Japan, 1600–1870
American Economic Journal: Applied Economics 2026 · pkg 11723
eststo: qui ivreg2 tot_stem_births (land1 land2 =l`lag1'.land1 l`lag1'.land2) i.vil_year_ID , cluster(HH_ID)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: qui ivreg2 tot_stem_births (land1 land2 =l5*`x'.land1 l5*`x'.land2) i.vil_year_ID , cluster(HH_ID)
- O Brother, Where Start Thou? Sibling Spillovers on College and Major Choice in Four Countr
Quarterly Journal of Economics 2021 · pkg 7372
Share of the 1314 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
1089 of 1,799 packages absorb fixed effects in at least one estimation (absorb(), i. dummies, xtreg, fe).
Main fixed-effect set
-
author-named unitnames the reader has no word for, commonest first:
it,age_bins,ct,ij,jt,absorbid2,an,codigo20% · 2174 examples in the code
- Steering a Ship in Illiquid Waters: Active Management of Passive Funds
Review of Financial Studies 2025 · pkg 9
ivreghdfe lead1_effectiveTick_w_z (RD_indic_alt_b CR_indic_alt_b = rebalance_shock1_z rebalance_shock0_z) efTick_past_week_z avg_basket_size_w_z change_index_f …
- Tuition, Debt, and Human Capital
Review of Financial Studies 2023 · pkg 52
qui ivreghdfe `var' (tuition_bill = grade_change_2 grade_change_3 grade_change_4 ) /// , cl(cluster_college) a(college_fixed_effect entry_year) // grades … - Return Predictability, Expectations, and Investment: Experimental Evidence
Review of Financial Studies 2025 · pkg 105
quietly ivreghdfe invest (forecast = a) if (wave==1 | wave==2 | wave==3 | wave==4) & correct_flag==1 & per_predict==1, a(plabel order) vce(cluster order) //no c …
- Student Loans, Access to Credit, and Consumer Credit Demand
Review of Financial Studies 2024 · pkg 175
xtivreg `depvar'22 (tot_fedloans_22 = c.`inst'_`s'#c.ever_with_pub4_22) ever_with_pub4_22
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):xtivreg `depvar'22 (tot_fedloans_22 = c.`inst'_st_e_new#c.ever_with_pub4_22) ever_with_pub4_22 nocollege_22 degree_AS_22 degree_BA_22 degree_MA_22 degree_butunk …
- Steering a Ship in Illiquid Waters: Active Management of Passive Funds
Review of Financial Studies 2025 · pkg 9
-
time15% · 162
4 examples in the code
- Liquidity Restrictions, Runs, and Central Bank Interventions: Evidence from Money Market F
Review of Financial Studies 2021 · pkg 53
eststo: ivreghdfe pflow_w (wla_d_l2 = Dcumul_crisis) ab_gsy safe risk /// logsize bankaff cexpr age if crisis, cluster(date) absorb(date) - Digitalization and Retirement Contribution Behavior: Evidence from Administrative Data
Review of Financial Studies 2024 · pkg 92
eststo 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)
- Macroeconomic Expectations and Credit Card Spending
Review of Financial Studies 2026 · pkg 301
xi: ivreg2 `y'_post3_w (`endog_`field'' = `instr_`field'') `y'_pre3_w `exog', robust first
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):xi: ivreg2 `y'_post3_w (`endog_`field'' = `instr_`field'') `y'_pre3_w gap_infla gap_forex female age age2 have_child dependents college ln_Y i.surveyor i.week, …
- Investors’ Beliefs and Cryptocurrency Prices
Review of Asset Pricing Studies 2024 · pkg 7227
ivreg2 const (logME = logsupply) beta momentum4 incomenewdummy agenewdummy countrynewdummy type_objective log_sp500 log_libor i.wave if survey==1 , robust ffirs …
- Liquidity Restrictions, Runs, and Central Bank Interventions: Evidence from Money Market F
Review of Financial Studies 2021 · pkg 53
-
author-named unit + timenames the reader has no word for, commonest first:
it,age_bins,ct,ij,jt,absorbid2,an,codigo6% · 694 examples in the code
- Employee Representation and the Manager-to-Worker Pay Ratio
Review of Corporate Finance Studies 2026 · pkg 7251
ivreghdfe ln_payratio (d_per_08_d_post2=d_2000_08_d_post2) if sample_obs==1, cluster(random_id) absorb(random_id fy)
- Trust and Innovation Within the Firm: Evidence from Matched CEO-Firm Data
Quarterly Journal of Economics 2026 · pkg 7584
eststo col8: /// preceding CEO's trust as IV for change in trust, IV ivreghdfe ash_f1allpat (postxdeltatrust = postxtrustbf) postchange ${firm} ${ceo} /// …As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo col8: ivreghdfe ash_f1allpat (postxdeltatrust = postxtrustbf) postchange firmage firmage2 gender age age2 yrinco i.education if !bothnonUS, a(eventid yea …
- A Denial a Day Keeps the Doctor Away
Quarterly Journal of Economics 2024 · pkg 7629
ivreghdfe acceptinsurance diffm`fee'_post event_post (diffm`loss'_post = diffm`loss_denial'_post) `health_ins_market_post' `health_ins_market_year' `health_pro …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivreghdfe acceptinsurance diffmpi_c`v'_FE_cpt_line_post event_post (diffmlev_CIP_FE`v'_post = diffmv_initial_den_CIP`v'_post) `health_ins_market_post' `health_i …
- Web of Power: How Elite Networks Shaped War and Politics in China
Quarterly Journal of Economics 2023 · pkg 7667
ivreghdfe alloff (martyrs_tot_postXperiod = hXZeng_exam0_invdistXperiod ) Zeng_exam0_invdistXperiod hunanXperiod lnurbanpopXperiod-Taiping_route1Xperiod , ab …
- Employee Representation and the Manager-to-Worker Pay Ratio
Review of Corporate Finance Studies 2026 · pkg 7251
-
state / province4% · 39
4 examples in the code
- The Rise of Finance Companies and FinTech Lenders in Small Business Lending
Review of Financial Studies 2022 · pkg 4
eststo p7: ivreghdfe share_07_160 `controls' (bank_change_tot_share = pre_crisis_bank_share), abs(state) cluster(county) first
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo p7: ivreghdfe share_07_160 unemp_rate_2002_2006 lfp_rate_2002_2006 est_2002_2006 wage_2002_2006 log_pop unemp_rate2005 lfp_rate2005 wage2005 (bank_change …
- Monetary Policy, Business Liquidity and Survival: Evidence from the Refinancing Channel
Review of Financial Studies 2023 · pkg 88
ivreghdfe win_loc_ret_chg (refi_pct_2009=pdum3) median_income2009_ln pop2010_ln percent_white2009 percent_black2009 if pdum2!=1 [aw=pop2010], absorb(state) …
- Small Bank Lending in the Era of Fintech and Shadow Banks: A Sideshow?
Review of Financial Studies 2022 · pkg 148
capture 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, …
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_ …
- The Evolution of Access to Public Accommodations in the United States
Quarterly Journal of Economics 2023 · pkg 7536
eststo main_iv_hotel_wwii: ivreg2 a_d_gbhotel4050 (a_d_blackshr4050 = a_killed_w) i.stateid if num_hotel_CoBab1935 != ., first
- The Rise of Finance Companies and FinTech Lenders in Small Business Lending
Review of Financial Studies 2022 · pkg 4
-
county / city / district + time2% · 25
4 examples in the code
- 3G Internet and Confidence in Government
Quarterly Journal of Economics 2021 · pkg 7447
ivreghdfe pr_comp (three_g_w = i.income_gr2#c.top_lightnings_w_per_area#c.year) $income_controls c.max_elevation#c.year i.popul_density_bins_5#c.year c.share_de …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivreghdfe pr_comp (three_g_w = i.income_gr2#c.top_lightnings_w_per_area#c.year) income_control democ7 democ5 lngdp_pc unemployment c.max_elevation#c.year i.popu …
- “Placebo Tests” for the Impacts of Air Pollution on Health: The Challenge of Limited Healt
AEA Papers and Proceedings 2021 · pkg 11406
eststo: ivreghdfe hrate_`disease' ${controls} (pm = ws ws_1) [w = population], absorb(district dow month year) cluster(district date)As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: ivreghdfe hrate_`disease' temp humid temp2 humid2 temphumid (pm = ws ws_1) [w = population], absorb(district dow month year) cluster(district date)
- Air Pollution and Mental Health: Evidence from China
AEA Papers and Proceedings 2024 · pkg 11599
xi: ivreghdfe `i' (lagw4_pm25_= lagw4_TINumD1) [weight= sample_weight] if urban14==1, absorb(county_code date) cluster(cou …
- Family Types and Intimate Partner Violence: A Historical Perspective
Review of Economics and Statistics 2019 · pkg 13807
ivreg2 ipv i.age i.educ i.educ_par2 i.occup_status children refe i.civil_status i.city i.year /// (stem_f=polit_dec), cluster(provin) first
- 3G Internet and Confidence in Government
Quarterly Journal of Economics 2021 · pkg 7447
-
state / province + time2% · 24
4 examples in the code
- The Slope of the Phillips Curve: Evidence from U.S. States
Quarterly Journal of Economics 2022 · pkg 7671
eststo: ivreghdfe infl_reg_sign (L4.mean_une = L4.d20_qt_bartik_sa) L4.rp, absorb(i.statecode i.date) cluster(statecode)
- Algorithmic Pricing and Competition: Empirical Evidence from the German Retail Gasoline Ma
Journal of Political Economy 2024 · pkg 7721
quietly ivreghdfe mean_wh_margin postal_n_stations n_compet_adopt l_gdp pop_density med_age employed_share l_pop n_brand mean_temp sd_temp mean_precip sd_precip …
- Benign Effects of Automation: New Evidence from Patent Texts
Review of Economics and Statistics 2023 · pkg 13143
xi:ivreg2 d5_emp_popwplus_tr (s5f_ln_autopats_US s5f_ln_nonautopats_US = $instr) $controls, cluster(state)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):xi:ivreg2 d5_emp_popwplus_tr (s5f_ln_autopats_US s5f_ln_nonautopats_US = s5f_ln_autopats_gov s5f_ln_nonautopats_gov s5f_ln_autopats_res s5f_ln_nonautopats_res s …
- Estimating the Effect of the Age Distribution on Cyclical Output Volatility Across the Uni
Review of Economics and Statistics 2012 · pkg 13409
xi: ivregress 2sls vol (share=birth20 birth30 birth40 birth50) growth i.state i.year, robust cluster(state)
- The Slope of the Phillips Curve: Evidence from U.S. States
Quarterly Journal of Economics 2022 · pkg 7671
-
country2% · 23
4 examples in the code
- Zombies at Large? Corporate Debt Overhang and the Macroeconomy
Review of Financial Studies 2022 · pkg 70
qui xtivreg dep /// $h_boom $b_boom /// (interaction = iv_interaction) /// `controls_`D'' /// $subsample & lrgdp_pk==1 /// , fe vce(robust)As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui xtivreg dep y5_thh_gdp y5_bdebt_gdp (interaction = iv_interaction) `controls_`D'' if !inrange(year, 1909, 1923) & !inrange(year, 1935, 1950) & (!inrang …
- When Two Become One: Foreign Capital and Household Credit Expansion
Review of Financial Studies 2026 · pkg 256
xtivreg2 Fd3y (LD3_HH_RoTW_RD_GDP=LD3supply_GDP) LD3_HH_HH_RD_GDP LD3_HH_GG_RD_GDP LD3_B_L_NonFiInLoans_GDP LD3_CA_IFSorWEO_GDP /// l(1/3).d.lrgdp if !inlis … - The Environmental Bias of Trade Policy
Quarterly Journal of Economics 2021 · pkg 7645
xi: ivreg2 applied_ave (co2_rate_total = iv_co2_rate_direct) i.country_name, cluster(industry_code)
- Structure of income inequality and household leverage: Cross-country causal evidence
European Economic Review 2021 · pkg 12330
xtivreg2 Household_Ratio GDPpercapita_LogReal BroadMoney_Ratio Creditmarketregulations (Gini = cum_totconv) yeard* if Palma!=. , first fe ro endog(Gini) sav …
- Zombies at Large? Corporate Debt Overhang and the Macroeconomy
Review of Financial Studies 2022 · pkg 70
-
unspecified id (id, i, group...)2% · 23
4 examples in the code
- The Systemic Governance Influence of Expectation Documents: Evidence from a Universal Owne
Review of Corporate Finance Studies 2025 · pkg 7253
quietly xtivreg ManagementScore yeardummy* Postcountry_dummy* (PostNBIMrelev = Posttreat) if outlier == 0 & outlieryeardummies == 0 & outlierSCORE == 0, first …
- Aid, China, and Growth: Evidence from a New Global Development Finance Dataset
American Economic Journal: Economic Policy 2021 · pkg 11278
xtivreg2 growth_pc (l.OFn_all= l.IV_reserves_OFn_all_1_ln l.IV_factor1_OFn_all_1_ln) l.population_ln time* if code!="CHN", fe first savefprefix(first) cluster(c …
- Do parties matter? Estimating the effect of political power in multi-party systems
European Economic Review 2015 · pkg 12026
xtivreg `var'
- The distribution of the gains from spillovers through worker mobility between workers and
European Economic Review 2014 · pkg 12032
bootstrap, reps(100): xtivreg fy fm (fn = $ivlist) fk gap_p_wlp_all gap_n_wlp_all tfp_wlp_resid ltfp_wlp_resid hum_capn_p_wlp_all hum_capn_n_wlp_all $control_f …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):bootstrap, reps(100): xtivreg fy fm (fn = ln1 ln2 ln3) fk gap_p_wlp_all gap_n_wlp_all tfp_wlp_resid ltfp_wlp_resid hum_capn_p_wlp_all hum_capn_n_wlp_all llinv11 …
- The Systemic Governance Influence of Expectation Documents: Evidence from a Universal Owne
Review of Corporate Finance Studies 2025 · pkg 7253
-
county / city / district2% · 21
4 examples in the code
- Leveling with friends: Social networks and Indian farmers' demand for a technology with he
Journal of Development Economics 2015 · pkg 11949
ivregress 2sls l_qgallons_hh_peracre (onelev = winner) $controls if qualify==1 , r
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivregress 2sls l_qgallons_hh_peracre (onelev = winner) hh_upland hh_heavysoil age edu totareaown i.district if qualify==1 , r
- The internet effects on sex crime offenses - Evidence from the German broadband internet e
Journal of Economic Behavior & Organization 2019 · pkg 12146
xtivreg2 d_post_sex_crime (dsl=treat) $controls_late1 $controls_post if $late1, fe
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):xtivreg2 d_post_sex_crime (dsl=treat) $controls_late1 $controls_post if (west==1 & ownmdf==0 & marginal_mdf==1), fe
- The Impact of Children's Health Shocks on Parents' Labor Earnings and Mental Health
Review of Economics and Statistics 2024 · pkg 13403
ivreg2 income post treat post_treat i.muni i.year_calendar i.child_b_year ( treat_post_postfam_allow = treat_post_IV ) , cluster(shnro_mother) savefirst savefpr …
- Racial Sorting and the Emergence of Segregation in American Cities
Review of Economics and Statistics 2019 · pkg 13553
ivregress 2sls whitediff10 i.city_cd (blackdiff10 = IV_black10)
- Leveling with friends: Social networks and Indian farmers' demand for a technology with he
Journal of Development Economics 2015 · pkg 11949
-
unspecified id (id, i, group...) + time2% · 20
4 examples in the code
- Effects of Credit Expansions on Stock Market Booms and Busts
Review of Financial Studies 2025 · pkg 196
ivreghdfe price590 (F.price590=f(2/3).d) d if vintage!=1 & vintage!=0 ,cl(code ) a(code date2)
- Digital Payments and Consumption: Evidence from the 2016 Demonetization in India
Review of Financial Studies 2024 · pkg 209
eststo iv_loglevel: ivreghdfe ltender_amt_month (noncash_amt_pct = after_cash_amt_pct_before), /// absorb(cid DTCode##yearmonth) vce(cluster cid yearmonth) … - The Value of Firm Networks: A Natural Experiment on Board Connections
Review of Corporate Finance Studies 2026 · pkg 7330
qui: ivreghdfe `ThisOut' (`ThisVar' = interact), a(id dateid) cluster(id)
- Do global banks facilitate foreign direct investment?
European Economic Review 2015 · pkg 11986
qui xi: xtivreg2 poptot $rhs1 i.year ($lhs=$iv) , fe first
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui xi: xtivreg2 poptot ln_poptot llngdppc rernlgdp instm5i crisis entrybarriers openness reformind i.year (lnfdibank=intlca bankingsuperv securitymarkets) , fe …
- Effects of Credit Expansions on Stock Market Booms and Busts
Review of Financial Studies 2025 · pkg 196
Share of the 1089 packages that absorb fixed effects, each at the set most of its estimations use. Greyed: fewer than 10 packages.
Any estimation absorbs…
-
time29% · 529
4 examples in the code
- Liquidity Restrictions, Runs, and Central Bank Interventions: Evidence from Money Market F
Review of Financial Studies 2021 · pkg 53
eststo: ivreghdfe pflow_w (wla_d_l2 = Dcumul_crisis) ab_gsy safe risk /// logsize bankaff cexpr age if crisis, cluster(date) absorb(date) - Health Care Costs and Corporate Investment
Review of Financial Studies 2024 · pkg 63
ivreghdfe `var' `controls' (log_prem_percapita= `health' `controls'), absorb(fyear gvkey) cluster(state_n)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivreghdfe `var' l1_firm_logat l1_firm_cash2lat l1_firm_netprofitmargin l1_firm_logppent l1_firm_q firm_logage l1_unemployment_rate l1_log_personalincome_adj (lo …
- Digitalization and Retirement Contribution Behavior: Evidence from Administrative Data
Review of Financial Studies 2024 · pkg 92
eststo 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)
- The Rise of Star Firms: Intangible Capital and Competition
Review of Financial Studies 2024 · pkg 131
qui: xi: eststo: ivreghdfe `v1' L.LIC L.Lage (L.impUSA=L.impOTH), first cluster(naics2007_4dig) absorb(year naics2007_4dig)
- Liquidity Restrictions, Runs, and Central Bank Interventions: Evidence from Money Market F
Review of Financial Studies 2021 · pkg 53
-
author-named unitnames the reader has no word for, commonest first:
it,age_bins,ct,ij,jt,absorbid2,an,codigo28% · 5124 examples in the code
- Steering a Ship in Illiquid Waters: Active Management of Passive Funds
Review of Financial Studies 2025 · pkg 9
ivreghdfe lead1_effectiveTick_w_z (RD_indic_alt_b CR_indic_alt_b = rebalance_shock1_z rebalance_shock0_z) efTick_past_week_z avg_basket_size_w_z change_index_f …
- Tuition, Debt, and Human Capital
Review of Financial Studies 2023 · pkg 52
qui ivreghdfe `var' (tuition_bill = grade_change_2 grade_change_3 grade_change_4 ) /// , cl(cluster_college) a(college_fixed_effect entry_year) // grades … - Return Predictability, Expectations, and Investment: Experimental Evidence
Review of Financial Studies 2025 · pkg 105
quietly ivreghdfe invest (forecast = a) if (wave==1 | wave==2 | wave==3 | wave==4) & correct_flag==1 & per_predict==1, a(plabel order) vce(cluster order) //no c …
- The Impact of the Opioid Crisis on Firm Value and Investment
Review of Financial Studies 2025 · pkg 133
ivreghdfe emp (opioid=provprob), a(`fe') cluster(FIPS)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivreghdfe emp (opioid=provprob), a(gfe plantyp) cluster(FIPS)
- Steering a Ship in Illiquid Waters: Active Management of Passive Funds
Review of Financial Studies 2025 · pkg 9
-
author-named unit × timenames the reader has no word for, commonest first:
it,age_bins,ct,ij,jt,absorbid2,an,codigo6% · 1124 examples in the code
- Owner Incentives and Performance in Healthcare: Private Equity Investment in Nursing Homes
Review of Financial Studies 2024 · pkg 121
ivreghdfe 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_ol …
- Institutional Corporate Bond Pricing
Review of Financial Studies 2026 · pkg 147
eststo: ivreghdfe LNrweight_conditional (yield = IVme_alt6_95) LNtimetomat spread LNbv rating_num coupon_dec if type_new2==`i' & assetclass == 1 [aw=aum_assetcl …
- The Product Market Effects of Index Inclusion
Review of Financial Studies 2026 · pkg 292
eststo: ivreghdfe d_price_ln_t_tp1 (d_qix = r_1_to_2 r_2_to_1) $running_3 $controls if share_product_module==`i', a(year#prod_cat year#industry) clus(firm) noco …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: ivreghdfe d_price_ln_t_tp1 (d_qix = r_1_to_2 r_2_to_1) d_total_mv_ln d_total_mv_ln_sq d_total_mv_ln_cu d_ff_rus band band_d02 if share_product_module==` …
- Credit Environment and Small Business Dynamics: Evidence from Establishment-Level Data
Review of Corporate Finance Studies 2023 · pkg 7317
ivreghdfe g_dep l_lasset l_lev l_liqs l_cis l_tier1 l_deps (xboom=xboom_iv) if year>=2003 & nonboom_bank0==1, absorb(rssd_id state_head#year) cluster(rssd_id)
- Owner Incentives and Performance in Healthcare: Private Equity Investment in Nursing Homes
Review of Financial Studies 2024 · pkg 121
-
county / city / district5% · 96
4 examples in the code
- 3G Internet and Confidence in Government
Quarterly Journal of Economics 2021 · pkg 7447
ivreghdfe pr_comp (three_g_w = i.income_gr2#c.top_lightnings_w_per_area#c.year) $income_controls c.max_elevation#c.year i.popul_density_bins_5#c.year c.share_de …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivreghdfe pr_comp (three_g_w = i.income_gr2#c.top_lightnings_w_per_area#c.year) income_control democ7 democ5 lngdp_pc unemployment c.max_elevation#c.year i.popu …
- The Unequal Gains from Product Innovations: Evidence from the U.S. Retail Sector
Quarterly Journal of Economics 2019 · pkg 7579
ivreg2 RMS_lces_price_index_win (lRMS_total_spending_QM_2006=inst_raw_lvl) i.fips [aw=sqrt(RMS_avg_spending)], first /// cluster(product_module_code)
- Web of Power: How Elite Networks Shaped War and Politics in China
Quarterly Journal of Economics 2023 · pkg 7667
ivreghdfe lnmartyr1 (Zeng_all0_invdist_Post=Zeng_exam0_invdist_Post) invdist0_L1_Post capital_Post lnurbanpop_Post lnjinshi_Post lnquotas_Post route1_Po …
- Piercing through Opacity: Relationships and Credit Card Lending to Consumers and Small Bus
Journal of Political Economy 2024 · pkg 7707
ivreghdfe apr_spread ln_currentcreditlimit (any_rel_3y=hat2) score_580_660 score_660_720 score_720plus income_25_50k income_50_100k income_100_150k income_150k_ …
- 3G Internet and Confidence in Government
Quarterly Journal of Economics 2021 · pkg 7447
-
state / province5% · 96
4 examples in the code
- The Rise of Finance Companies and FinTech Lenders in Small Business Lending
Review of Financial Studies 2022 · pkg 4
eststo p7: ivreghdfe share_07_160 `controls' (bank_change_tot_share = pre_crisis_bank_share), abs(state) cluster(county) first
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo p7: ivreghdfe share_07_160 unemp_rate_2002_2006 lfp_rate_2002_2006 est_2002_2006 wage_2002_2006 log_pop unemp_rate2005 lfp_rate2005 wage2005 (bank_change …
- Monetary Policy, Business Liquidity and Survival: Evidence from the Refinancing Channel
Review of Financial Studies 2023 · pkg 88
ivreghdfe win_loc_ret_chg (refi_pct_2009=pdum3) median_income2009_ln pop2010_ln percent_white2009 percent_black2009 if pdum2!=1 [aw=pop2010], absorb(state) …
- Small Bank Lending in the Era of Fintech and Shadow Banks: A Sideshow?
Review of Financial Studies 2022 · pkg 148
capture 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, …
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_ …
- The Evolution of Access to Public Accommodations in the United States
Quarterly Journal of Economics 2023 · pkg 7536
eststo main_iv_hotel_wwii: ivreg2 a_d_gbhotel4050 (a_d_blackshr4050 = a_killed_w) i.stateid if num_hotel_CoBab1935 != ., first
- The Rise of Finance Companies and FinTech Lenders in Small Business Lending
Review of Financial Studies 2022 · pkg 4
-
unspecified id (id, i, group...)5% · 91
4 examples in the code
- The Impact of the Opioid Crisis on Firm Value and Investment
Review of Financial Studies 2025 · pkg 133
ivreghdfe emp (opioid=provprob), a(`fe') cluster(FIPS)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivreghdfe emp (opioid=provprob), a(gfe plantyp) cluster(FIPS)
- Beyond Home Bias: International Portfolio Holdings and Information Heterogeneity
Review of Financial Studies 2022 · pkg 152
quietly eststo : ivreghdfe share_EEA_lt_mkt l_dist SFE_Y10 (FY10 SFE_Y10_FY10 = foreignnonbank SFE_Y10_foreignnonbank), absorb(CountryID#tq ID) cluster(bankcou …
- Effects of Credit Expansions on Stock Market Booms and Busts
Review of Financial Studies 2025 · pkg 196
ivreghdfe price590 (F.price590=f(2/3).d) d if vintage!=1 & vintage!=0 ,cl(code ) a(code date2)
- Digital Payments and Consumption: Evidence from the 2016 Demonetization in India
Review of Financial Studies 2024 · pkg 209
eststo iv_loglevel: ivreghdfe ltender_amt_month (noncash_amt_pct = after_cash_amt_pct_before), /// absorb(cid DTCode##yearmonth) vce(cluster cid yearmonth) …
- The Impact of the Opioid Crisis on Firm Value and Investment
Review of Financial Studies 2025 · pkg 133
-
country3% · 55
4 examples in the code
- Zombies at Large? Corporate Debt Overhang and the Macroeconomy
Review of Financial Studies 2022 · pkg 70
qui xtivreg dep /// $h_boom $b_boom /// (interaction = iv_interaction) /// `controls_`D'' /// $subsample & lrgdp_pk==1 /// , fe vce(robust)As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui xtivreg dep y5_thh_gdp y5_bdebt_gdp (interaction = iv_interaction) `controls_`D'' if !inrange(year, 1909, 1923) & !inrange(year, 1935, 1950) & (!inrang …
- When Two Become One: Foreign Capital and Household Credit Expansion
Review of Financial Studies 2026 · pkg 256
xtivreg2 Fd3y (LD3_HH_RoTW_RD_GDP=LD3supply_GDP) LD3_HH_HH_RD_GDP LD3_HH_GG_RD_GDP LD3_B_L_NonFiInLoans_GDP LD3_CA_IFSorWEO_GDP /// l(1/3).d.lrgdp if !inlis … - The Environmental Bias of Trade Policy
Quarterly Journal of Economics 2021 · pkg 7645
xi: ivreg2 applied_ave (co2_rate_total = iv_co2_rate_direct) i.country_name, cluster(industry_code)
- Credit Markets, Property Rights, and the Commons
Journal of Political Economy 2024 · pkg 7719
h1 = feols(ffmsy ~ pr + gdp + gdp2 | stock_id + country + year |credit + credit:pr ~ credit_instrument + credit_instrument:pr …
- Zombies at Large? Corporate Debt Overhang and the Macroeconomy
Review of Financial Studies 2022 · pkg 70
-
firm3% · 54
4 examples in the code
- Health Care Costs and Corporate Investment
Review of Financial Studies 2024 · pkg 63
ivreghdfe `var' `controls' (log_prem_percapita= `health' `controls'), absorb(fyear gvkey) cluster(state_n)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivreghdfe `var' l1_firm_logat l1_firm_cash2lat l1_firm_netprofitmargin l1_firm_logppent l1_firm_q firm_logage l1_unemployment_rate l1_log_personalincome_adj (lo …
- Leaky Director Networks and Innovation Herding
Review of Financial Studies 2026 · pkg 172
ivreghdfe tsim4_wz (oddensity4l1_wz = c.z2#c.post2004 log_atl1 log_agel1 ) if year>=2000 & year<=2009 & tsim4_wz!=. & profitability_wz!=. & mkt_book_ …
- Collateral Effects: The Role of FinTech in Small Business Lending
Review of Financial Studies 2026 · pkg 205
eststo second: ivreghdfe lloan (p2pqtrcapturing=scoredeltapost) post volloanv $control_0 if deltaqdummy, cl(siren) a(qdate siren)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo second: ivreghdfe lloan (p2pqtrcapturing=scoredeltapost) post volloanv `"*_0 dum_*"' if deltaqdummy, cl(siren) a(qdate siren)
- Excess Commitment in R&D
Review of Financial Studies 2026 · pkg 302
ivreghdfe suspension_100 (DELAY = `iv') if CORRECT_MATCH != ., absorb(CompanyID icd9 yr_qtr phaseid) cluster(icd9 yr_qtr)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivreghdfe suspension_100 (DELAY = delayiv_w) if CORRECT_MATCH != ., absorb(CompanyID icd9 yr_qtr phaseid) cluster(icd9 yr_qtr)
- Health Care Costs and Corporate Investment
Review of Financial Studies 2024 · pkg 63
-
industry3% · 53
4 examples in the code
- The Rise of Star Firms: Intangible Capital and Competition
Review of Financial Studies 2024 · pkg 131
qui: xi: eststo: ivreghdfe `v1' L.LIC L.Lage (L.impUSA=L.impOTH), first cluster(naics2007_4dig) absorb(year naics2007_4dig)
- Competition and Innovation Revisited: A Project-Level View
Review of Financial Studies 2025 · pkg 137
ivreghdfe xrdw_atw cr4 (liu liusq=lio liosq) ,abs(sic4 year segnum) vce(cluster gvkey)
- Shareholder-Creditor Conflict and the Resolution of Financial Distress
Review of Corporate Finance Studies 2025 · pkg 7318
quietly ivregress 2sls out1 $control1 i.sic2 i.year (dummy_le=amihud4) , vce(cl sic2)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):quietly ivregress 2sls out1 size cash cflow tang rd rd_missing blev ds_score frac_loans mi_frac_loans i.sic2 i.year (dummy_le=amihud4) , vce(cl sic2)
- Complete Pass-Through in Levels
Quarterly Journal of Economics 2026 · pkg 7364
feols(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 …
- The Rise of Star Firms: Intangible Capital and Competition
Review of Financial Studies 2024 · pkg 131
-
region / MSA / CZ3% · 47
4 examples in the code
- State-Dependent Effects of Monetary Policy: The Refinancing Channel
American Economic Review 2022 · pkg 11199
xtivreg flag_refi_cashout_1year CPI_?yr RGDP_?yr UNEMP_?yr wvg_Hequity hpi top4 UR Lgap_wgt L.Lgap_wgt nshock0 (CRealM30 CRealM30_1_Lgap_wgt = nshock1 nshock1 …
- Community Colleges and Upward Mobility
American Economic Review 2022 · pkg 11321
ivreg2 `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 …
- Immigration and Spatial Equilibrium: The Role of Expenditures in the Country of Origin
American Economic Review 2022 · pkg 11362
ivreg2 lwgap (lLratio = lLratio_pred) i.$skill i.year i.metarea [aw=L], cluster(metarea)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivreg2 lwgap (lLratio = lLratio_pred) i.skill_agg i.year i.metarea [aw=L], cluster(metarea)
- Trade, pollution and mortality in China
Journal of International Economics 2020 · pkg 12363
ivreg2 d_All_mortality_p1 (shock_pca_chn DD_chn=shock_pca_f_chn DD_f_chn) $controls poll_emp_pca_chn [aweight=weight], endog(shock_pca_chn DD_chn) first ffirst …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivreg2 d_All_mortality_p1 (shock_pca_chn DD_chn=shock_pca_f_chn DD_f_chn) lag_GDP_cap lag_All_mortality_overall lag_pop_density d_highschool d_midschool d_boy d …
- State-Dependent Effects of Monetary Policy: The Refinancing Channel
American Economic Review 2022 · pkg 11199
Share of 1799 packages with a model that shows the design. Greyed: fewer than 10 packages.
Estimator commands
-
ivreg236% · 646
3 examples in the code
- Small Bank Lending in the Era of Fintech and Shadow Banks: A Sideshow?
Review of Financial Studies 2022 · pkg 148
eststo, prefix(brLT`lt'_IV_): ivreg2 w_Gr7 (WtAve08_Big4Gr_LenderSpecific= WtAve08_Big4Sh_LenderSpecific) if LC_08==`lt', robust
- Student Loans, Access to Credit, and Consumer Credit Demand
Review of Financial Studies 2024 · pkg 175
ivreg2 auto`x' (tot_fedloans_22 = c.`inst'_`s'#c.ever_with_pub4_22) ever_with_pub4_22
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):ivreg2 auto`x' (tot_fedloans_22 = c.`inst'_st_e_new#c.ever_with_pub4_22) ever_with_pub4_22 d_clustvar2d* if todrop == 0 & f_enroll_grad_new~=1, cluster(clustvar …
- Shared Destinies? Small Banks and Small Businesses
Review of Financial Studies 2025 · pkg 200
eststo: 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 & …
- Small Bank Lending in the Era of Fintech and Shadow Banks: A Sideshow?
Review of Financial Studies 2022 · pkg 148
-
ivreghdfe35% · 622
3 examples in the code
- The Rise of Finance Companies and FinTech Lenders in Small Business Lending
Review of Financial Studies 2022 · pkg 4
eststo p7: ivreghdfe share_07_160 `controls' (bank_change_tot_share = pre_crisis_bank_share), abs(state) cluster(county) first
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo p7: ivreghdfe share_07_160 unemp_rate_2002_2006 lfp_rate_2002_2006 est_2002_2006 wage_2002_2006 log_pop unemp_rate2005 lfp_rate2005 wage2005 (bank_change …
- Steering a Ship in Illiquid Waters: Active Management of Passive Funds
Review of Financial Studies 2025 · pkg 9
ivreghdfe lead1_effectiveTick_w_z (RD_indic_alt_b CR_indic_alt_b = rebalance_shock1_z rebalance_shock0_z) efTick_past_week_z avg_basket_size_w_z change_index_f …
- Cross-Selling in Bank-Household Relationships: Mechanisms and Implications for Pricing
Review of Financial Studies 2026 · pkg 48
eststo: ivreghdfe futureborrower (existing_dep = old_mshare_deposit), absorb(i.muniid#i.agebingroup#i.salaryquarter#i.educ) // IV
- The Rise of Finance Companies and FinTech Lenders in Small Business Lending
Review of Financial Studies 2022 · pkg 4
-
ivregress24% · 425
3 examples in the code
- Digitalization and Retirement Contribution Behavior: Evidence from Administrative Data
Review of Financial Studies 2024 · pkg 92
eststo 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)
- Field of Study and Financial Problems: How Economics Reduces the Risk of Default
Review of Financial Studies 2023 · pkg 109
qui ivregress 2sls restance (optaget2 = over) dist over_X_dist `if' `opt' first
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui ivregress 2sls restance (optaget2 = over) dist over_X_dist if f2==2 & abs(dist10)<=15 & !mi(restance) & !mi(sex) & !mi(yoa) & !mi(aldersgrp) & !mi(inc_dum) …
- Finding Fortune: How Do Institutional Investors Pick Asset Managers?
Review of Financial Studies 2023 · pkg 229
eststo A4: ivregress 2sls ${indep1}_tb (laum_tb = laum_bb), nocons vce(cl fundid)As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo A4: ivregress 2sls xret_style_nr_tb (laum_tb = laum_bb), nocons vce(cl fundid)
- Digitalization and Retirement Contribution Behavior: Evidence from Administrative Data
Review of Financial Studies 2024 · pkg 92
-
ivreg11% · 193
3 examples in the code
- Estimating General Equilibrium Spillovers of Large-Scale Shocks
Review of Financial Studies 2023 · pkg 29
ivreg y_1_spillover_x2 (x2 industry_mean_x2_1 = instrument industry_mean_instrument_1), cluster(county)
- Credit Supply and Housing Speculation
Review of Financial Studies 2022 · pkg 218
ivreg unfavdiff (cl0206=ncl02) if year==2002 [aweight=WT2], r
- Corporate Bond Liquidity during the COVID-19 Crisis
Review of Financial Studies 2021 · pkg 237
IV_reg_volc <- ivreg( Wtd_price_diff ~ LN + dum_SMCCF_expansion | Deseasonalized_ln_vol_C2 + dum_SMCCF_expansion, data = Regdata)
- Estimating General Equilibrium Spillovers of Large-Scale Shocks
Review of Financial Studies 2023 · pkg 29
-
xtivreg28% · 148
3 examples in the code
- Shared Destinies? Small Banks and Small Businesses
Review of Financial Studies 2025 · pkg 200
eststo: xtivreg2 bank_lndep (bank_gSmallFirm1 = bank_bartikGS1 ) year_* if abs(bank_lndep)<5 & year>2002 & Lsmall==1 & `Filters', fe cluster(cert)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: xtivreg2 bank_lndep (bank_gSmallFirm1 = bank_bartikGS1 ) year_* if abs(bank_lndep)<5 & year>2002 & Lsmall==1 & year>2002 & abs(bank_lndep)<=5 & SBquant2 …
- The Effects of Going Public on Firm Profitability and Strategy
Review of Financial Studies 2025 · pkg 203
qui xtivreg2 wroa (IPO_UK IPO_FR IPO_GE IPO_SE IPO_IT IPO_NO IPO_Oth=inst_UK inst_FR inst_GE inst_SE inst_IT inst_NO inst_Oth) /// deventyear2 deventyear3 dev …
- When Two Become One: Foreign Capital and Household Credit Expansion
Review of Financial Studies 2026 · pkg 256
xtivreg2 Fd3y (LD3_HH_RoTW_RD_GDP=LD3supply_GDP) LD3_HH_HH_RD_GDP LD3_HH_GG_RD_GDP LD3_B_L_NonFiInLoans_GDP LD3_CA_IFSorWEO_GDP /// l(1/3).d.lrgdp, fe clus …
- Shared Destinies? Small Banks and Small Businesses
Review of Financial Studies 2025 · pkg 200
-
xtivreg4% · 79
3 examples in the code
- Zombies at Large? Corporate Debt Overhang and the Macroeconomy
Review of Financial Studies 2022 · pkg 70
qui xtivreg dep /// $h_boom $b_boom /// (interaction = iv_interaction) /// `controls_`D'' /// $subsample & lrgdp_pk==1 /// , fe vce(robust)As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui xtivreg dep y5_thh_gdp y5_bdebt_gdp (interaction = iv_interaction) `controls_`D'' if !inrange(year, 1909, 1923) & !inrange(year, 1935, 1950) & (!inrang …
- Student Loans, Access to Credit, and Consumer Credit Demand
Review of Financial Studies 2024 · pkg 175
xtivreg `depvar'22 (tot_fedloans_22 = c.`inst'_`s'#c.ever_with_pub4_22) ever_with_pub4_22
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):xtivreg `depvar'22 (tot_fedloans_22 = c.`inst'_st_e_new#c.ever_with_pub4_22) ever_with_pub4_22 nocollege_22 degree_AS_22 degree_BA_22 degree_MA_22 degree_butunk …
- Shared Destinies? Small Banks and Small Businesses
Review of Financial Studies 2025 · pkg 200
xtivreg gsmall_dep1 i.year (gSmallFirm1 = bartikGS1), fe vce(cluster state)
- Zombies at Large? Corporate Debt Overhang and the Macroeconomy
Review of Financial Studies 2022 · pkg 70
-
feols2% · 41
3 examples in the code
- Complete Pass-Through in Levels
Quarterly Journal of Economics 2026 · pkg 7364
feols(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 … - Selection with Variation in Diagnostic Skill: Evidence from Radiologists
Quarterly Journal of Economics 2022 · pkg 7483
coeff[1] <- feols(f ~ 1 | 1 | d ~ d_jk, data)$coefficients["fit_d"]
- Credit Markets, Property Rights, and the Commons
Journal of Political Economy 2024 · pkg 7719
h1 = feols(ffmsy ~ pr + gdp + gdp2 | stock_id + country + year |credit + credit:pr ~ credit_instrument + credit_instrument:pr …
- Complete Pass-Through in Levels
Quarterly Journal of Economics 2026 · pkg 7364
-
felm2% · 34
3 examples in the code
- Affirmative Action, Mismatch, and Economic Mobility after California’s Proposition 209
Quarterly Journal of Economics 2022 · pkg 7532
t<-summary(felm(DepVar~URM+Prop209 + SATIM_nom+SATIV_nom+hsgpa+SATIIW_nom+SATII_M_nom+factor(SATII_M2_Indic_nom)+SATII_Other_nom+SATIM_m+SATIV_m+SATIIW_m+SATII_ …
- The Social Integration of International Migrants: Evidence from the Networks of Syrians in
Journal of Political Economy 2026 · pkg 7765
col1 <- felm(produ_any_de ~ 1 | as.factor(first_year_in_de) | (wtd_avg_avg2~wtd_avg_avg1) | 0, dat=col1_dat)
- Efficiency and Redistribution in Environmental Policy: An Equilibrium Analysis of Agricult
Journal of Political Economy 2026 · pkg 7840
m_iv1 = felm(y ~ 1 | njtc | (x~iv) | ij, data=df_sample)
- Affirmative Action, Mismatch, and Economic Mobility after California’s Proposition 209
Quarterly Journal of Economics 2022 · pkg 7532
-
iv2sls0% · 8
3 examples in the code
- US Public Debt and Safe Asset Market Power
Journal of Political Economy 2026 · pkg 7740
res2 = IV2SLS(depvar, exog, endog, instr).fit()
- Quality Disclosure And Regulation: Scoring Design In Medicare Advantage
Econometrica 2025 · pkg 18818
model = IV2SLS(fe, X, Z)
- Market Power and Regulation in Pharmaceutical Markets
Journal of the European Economic Association 2026 · pkg 19257
results = IV2SLS(y, regressors, instruments).fit()
- US Public Debt and Safe Asset Market Power
Journal of Political Economy 2026 · pkg 7740
-
ivreg2h0% · 6
3 examples in the code
- Bank Concentration and Schumpeterian Growth: Theory and International Evidence
Review of Economics and Statistics 2018 · pkg 13111
ivreg2h growthpc proxpc (findev conc3 interpcconc3 interpcfindev = legor_uk legor_fr legor_ge proxlegoruk proxlegorfr proxlegorge /// cathos muslims protmgs pro …
- The World Is Not Yet Flat: Transport Costs Matter!
Review of Economics and Statistics 2018 · pkg 13717
xi: ivreg2h ln_cdf50 ln_empl lnherfent lnm_emp nmulti1 nfown lnnrs lnpee lnifqh3shr lnrdl m_asiashr m_oecdshr m_naftashr x_asiashr x_oecdshr x_naftashr lndistn …
- The Anticompetitive Effect of Minority Share Acquisitions: Evidence from the Introduction
American Economic Journal: Microeconomics 2022 · pkg 16678
eststo lewbel_1: xi: ivreg2h log_num_new $vars $vars2 (lp lp_post=) i.year, fe gmm2s r partial(i.year)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo lewbel_1: xi: ivreg2h log_num_new lgdp lgrowth lunemp linflation lpppex limp lexp lcredit linterest lstock ltrade (lp lp_post=) i.year, fe gmm2s r partia …
- Bank Concentration and Schumpeterian Growth: Theory and International Evidence
Review of Economics and Statistics 2018 · pkg 13111
Share of 1799 packages with a model that shows the design (a package runs several). Greyed: fewer than 10 packages.
Validation checks
-
first-stage / weak-instrument F reported47% · 893
4 examples in the code
- The Rise of Finance Companies and FinTech Lenders in Small Business Lending
Review of Financial Studies 2022 · pkg 4
eststo p7: ivreghdfe share_07_160 `controls' (bank_change_tot_share = pre_crisis_bank_share), abs(state) cluster(county) first
- Liquidity Restrictions, Runs, and Central Bank Interventions: Evidence from Money Market F
Review of Financial Studies 2021 · pkg 53
esttab using IV_wlacrisis.tex, replace star(* 0.10 ** 0.05 *** 0.01) b(3) se(3) scalar(N widstat jp idp r2)
- Monetary Policy, Business Liquidity and Survival: Evidence from the Refinancing Channel
Review of Financial Studies 2023 · pkg 88
ivreghdfe win_loc_ret_chg (refi_pct_2009=pdum3) median_income2009_ln pop2010_ln percent_white2009 percent_black2009 if pdum2!=1 [aw=pop2010], absorb(state) …
- The Rise of Star Firms: Intangible Capital and Competition
Review of Financial Studies 2024 · pkg 131
qui: xi: eststo: ivreghdfe `v1' L.LIC L.Lage (L.impUSA=L.impOTH), first cluster(naics2007_4dig) absorb(year naics2007_4dig)
- The Rise of Finance Companies and FinTech Lenders in Small Business Lending
Review of Financial Studies 2022 · pkg 4
-
weak-IV-robust inference (weakiv, AR tests)3% · 62
4 examples in the code
- Collateral Effects: The Role of FinTech in Small Business Lending
Review of Financial Studies 2026 · pkg 205
weakiv
- Macroeconomic Expectations and Credit Card Spending
Review of Financial Studies 2026 · pkg 301
xi: twostepweakiv 2sls `y'_post3_w (`endog_`field'' = `instr_`field'') `y'_pre3_w `exog', /// level(95) usegrid citestlist(AR K LC) - 3G Internet and Confidence in Government
Quarterly Journal of Economics 2021 · pkg 7447
twostepweakiv 2sls pr_comp i.districtid i.year $ind_controls $income_controls c.max_elevation#c.year i.popul_density_bins_5#c.year c.share_desert#c.year c.shar …
- The Value of Ratings: Evidence from Their Introduction in Securities Markets
Journal of Political Economy 2026 · pkg 7720
twostepweakiv 2sls spr_wis (post_rated trend_rated = post_othry trend_othry) i.date_std i.id_issue_bidask c.PreMean_YTM_Bid##i.date_std c.PreMean_Spread_pct##i. …
- Collateral Effects: The Role of FinTech in Small Business Lending
Review of Financial Studies 2026 · pkg 205
-
over-identification test (Hansen J / Sargan)8% · 143
4 examples in the code
- Liquidity Restrictions, Runs, and Central Bank Interventions: Evidence from Money Market F
Review of Financial Studies 2021 · pkg 53
esttab using IV_wlacrisis.tex, replace star(* 0.10 ** 0.05 *** 0.01) b(3) se(3) scalar(N widstat jp idp r2)
- Dominant Currencies: How Firms Choose Currency Invoicing and Why it Matters
Quarterly Journal of Economics 2022 · pkg 7412
local j = e(j)
- The Effect of the Credit Crunch on Output Price Dynamics: The Corporate Inventory and Liqu
Quarterly Journal of Economics 2021 · pkg 7522
mat jstat=e(jp)
- Migration, Specialization, and Trade: Evidence from Brazil’s March to the West
Journal of Political Economy 2025 · pkg 7684
mat coef[5*(`1'-1)+4,`2'] = e(jp)
- Liquidity Restrictions, Runs, and Central Bank Interventions: Evidence from Money Market F
Review of Financial Studies 2021 · pkg 53
-
multiple-testing correction (FDR, Romano-Wolf, ...)6% · 108
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
gen fdr_temp1 = `qval_adj'*rank/`totalpvals'
- Old Boys’ Clubs and Upward Mobility Among the Educational Elite
Quarterly Journal of Economics 2022 · pkg 7375
legend(order(1 "Private fdr., club member" 2 "Private fdr., not member " /// 3 "Other hs, club member" 4 "Other hs, not member") size(small)) ytitle("Mean wage … - War, Socialism, and the Rise of Fascism: An Empirical Exploration
Quarterly Journal of Economics 2022 · pkg 7438
mutate(holm_pv = p.adjust(standard_pv, method = "holm", n = 4)) %>%
- Sell Low and Buy High: Arbitrage and Local Price Effects in Kenyan Markets
Quarterly Journal of Economics 2019 · pkg 7515
quietly gen fdr_temp = `qval'*rank/`totalpvals'
- Growing Markets through Business Training for Female Entrepreneurs: A Market-Level Randomi
American Economic Journal: Applied Economics 2021 · pkg 3478
Share of 1899 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.