← Methods
OLS
6,232
packages run it, of 7,459 whose models we parsed
6,192
papers
246,119
estimation commands
Adoption over time
Share of each publication year's packages with parsed models that run this estimator at least once (hover for counts). Grey years have fewer than 10 packages and are not a trend; package coverage is thin before ~2010, when journal data policies began.
Commands (of the 6,232 packages running the dedicated estimator)
reg4879areg1371regress840lm704ivreg2195ols192newey188felm175
Inference (of the 6,232 packages running the dedicated estimator)
default4291cluster3302robust2310newey_west245bootstrap147hac45randomization7jackknife2
Clustering variables (of the 6,232 packages running the dedicated estimator)
id253state118gvkey60country46fips44year39statefip37date34
Absorbed fixed effects (of the 6,232 packages running the dedicated estimator)
year80id78state44fips27gvkey27country19date15strata14
Foundational works
What the papers whose code runs this estimator cite most (share of those papers citing each).
- Difference-in-differences with variation in treatment timing — Andrew Goodman-Bacon (2021), Journal of Econometrics194 · 3%
- Difference-in-Differences with multiple time periods — Brantly Callaway; Pedro H.C. Sant’Anna (2021), Journal of Econometrics165 · 3%
- Unobservable Selection and Coefficient Stability: Theory and Evidence — Emily Oster (2019), Journal of Business and Economic Statistics164 · 3%
- The China Syndrome: Local Labor Market Effects of Import Competition in the United States — David H Autor; David Dorn; Gordon H Hanson (2013), American Economic Review153 · 2%
- Two-Way Fixed Effects Estimators with Heterogeneous Treatment Effects — Clément de Chaisemartin; Xavier D’Haultfœuille (2020), American Economic Review153 · 2%
- Multiple Inference and Gender Differences in the Effects of Early Intervention: A Reevaluation of the Abecedarian, Perry Preschool, and Early Training Projects — Michael Anderson (2008), Journal of the American Statistical Association153 · 2%
- The Impact Of Trade On Intra-Industry Reallocations And Aggregate Industry Productivity — Marc J. Melitz (2003), Econometrica149 · 2%
- How Much Should We Trust Differences-In-Differences Estimates? — Marianne Bertrand; Esther Duflo; Sendhil Mullainathan (2004), Quarterly Journal of Economics146 · 2%
- Estimating dynamic treatment effects in event studies with heterogeneous treatment effects — Liyang Sun; Sarah Abraham (2021), Journal of Econometrics144 · 2%
- Estimation and Inference of Impulse Responses by Local Projections — Òscar Jordà (2005), American Economic Review133 · 2%
- Bootstrap-Based Improvements For Inference With Clustered Errors — A. Colin Cameron; Jonah B. Gelbach; Douglas L. Miller (2008), Review of Economics and Statistics131 · 2%
- Robust Nonparametric Confidence Intervals for Regression-Discontinuity Designs — Sebastian Calonico; Matias D. Cattaneo; Rocio Titiunik (2014), Econometrica130 · 2%
Recent examples, straight from the code
Money and gender: Proxy respondents and the mismeasurement of income in surveys Journal of Development Economics 2027 · Do file - Tables and Figures.do:485 · pkg 158596
areg `x' inf_proxy i.yeartrim if sex_c==`y', abs(id) vce(cluster id)
Formalized employee search and labor demand Journal of Development Economics 2027 · add_01_professionalism_index.do:257 · pkg 158599
capture quietly regress `y' c.`idx', vce(robust)
Expected foreign military intervention and demand for state-building: Evidence from Mali Journal of Development Economics 2027 · jde_103897.do:245 · pkg 158602
reg highleveldemfut i.date $controls $controlsint i.clid $oursample, cluster(geoname_id)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):
reg highleveldemfut i.date age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw i.clid if REGION != 505 & date_ <= 6, cluster(geoname_id)
Career guidance and investments in education: Experimental evidence from Cambodia Journal of Development Economics 2027 · an_cam2020_ipei_main.do:188 · pkg 158609
reg `i' tstatus i.district, cluster(schoolid)
Building infrastructure and cohesion through locally embedded institutions: Evidence from a field experiment in War-torn Eastern Congo Journal of Development Economics 2027 · 05_01_Analysis_ITT_Main_Graphs_cg.do:34 · pkg 158611
qui reg `var' treat2 treat3 treat1 ///
i.year_survey i.pro_id i.q8_projecttype $controls, cl(q4_cddid)As we read it — macros filled in / loop expanded (an interpretation, not the file's text):
qui reg `var' treat2 treat3 treat1 i.year_survey i.pro_id i.q8_projecttype q16_sex q17_age q19_reading married, cl(q4_cddid)
Monitoring and delivering: Evidence from dropout rates in Brazil Journal of Development Economics 2027 · are_audits_random_table.R:23 · pkg 162034
feols(formula_final , #cluster = ~ibge_cod
vcov = "IID",
, data = . )
Supporting learning in and out of school: Experimental evidence from India Journal of Development Economics 2027 · 00_setup.do:107 · pkg 162035
eststo r_`depvar': xi: reg `depvar' LCSG SG LC $extravars, vce(cluster calc_school_id) // main reg
Estimating Discount Functions with Consumption Choices over the Lifecycle Review of Financial Studies 2026 · 3_scfanalysis_withCondMoments_bs.do:53 · pkg 116
regress hccbal_highint nhead ndepad und18 unemprate cohd* aged* [aweight=`wt'], noc r
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):
regress hccbal_highint nhead ndepad und18 unemprate cohd* aged* [aweight=wt`1'], noc r
Agency MBS as Safe Assets Review of Financial Studies 2026 · ReplicationCode_HeSongRFS2025_AgencyMBSasSafeAssets_v1.do:87 · pkg 125
ivreg2 fnma30yoas_AjCDS US30yrFRM vix logdebttogdp_fred logGSEtoGDP , bw(5) robust
Gender Stereotypes and Entrepreneur Financing Review of Financial Studies 2026 · Tables_3_4_5_6_7_8_Regressions.do:417 · pkg 171
reg FINV4 FEMALE if sample, robust
Collateral Effects: The Role of FinTech in Small Business Lending Review of Financial Studies 2026 · replication_package_codes_16_FinTech_vs_bank_loans.do:137 · pkg 205
eststo size: reg montant_initial p2p, a(quarterly_date)
Banking-Crisis Interventions across Time and Space Review of Financial Studies 2026 · MS_Replication_Kit_Final_Code_Table_Regressions.Rmd:49 · pkg 219
all_obs <- lm(Gap.Sum ~ year + Log.Lagged.gdppc + Candidate + Polity + Currency.Regime, data = full_master)