Panel fixed effects (no quasi-experimental design found)
This design across fields
| Field | packages | main clustering (of those that cluster) | winsorize / trim | checks |
|---|---|---|---|---|
| All fields | 2634 | author-named unit 37%; unspecified id (id, i, group...) 9%; firm 6%; county / city / district 5% (n=2056) | 26% | Oster 1%; multiple-testing correction 3% |
| Finance | 556 | author-named unit 22%; firm 12%; two-way: firm + time 6%; county / city / district 6% (n=509) | 48% | Oster 0%; multiple-testing correction 2% |
| Accounting | 86 | author-named unit 28%; firm 22%; two-way: firm + time 8%; industry 7% (n=76) | 76% | Oster 0%; multiple-testing correction 0% |
| Economics | 1976 | author-named unit 43%; unspecified id (id, i, group...) 11%; county / city / district 5%; state / province 5% (n=1460) | 17% | Oster 1%; multiple-testing correction 4% |
| Other fields | 16 | unspecified id (id, i, group...) 27%; author-named unit 18%; country 18%; firm 9% (n=11) | 25% | Oster 0%; multiple-testing correction 6% |
The typical package, and three that differ
Typical = the package that makes the most of this cell's modal choices
(reghdfe, clustered by county / city / district, time fixed effects,
no winsorizing, drops missing rows) —
it matches 5 of 6. Each contrast takes the second most common choice on one dimension.
- commands
reghdfe- clusters by
- does not cluster
- fixed effects
- time
- outliers
- no winsorizing / trimming found
- missing values
- replace missing with zero (imputation); drop rows with missing values; replace missing with another value (imputation)
- checks
- none of the design's checks found
- commands
reghdfe- clusters by
- state / province
- fixed effects
- time; unspecified id (id, i, group...) + time
- outliers
- no winsorizing / trimming found
- missing values
- drop rows with missing values; replace missing with zero (imputation); replace missing with another value (imputation)
- sample years
- 2017–2017 (as on the package page)
- checks
- none of the design's checks found
- commands
reghdfe- clusters by
- does not cluster
- fixed effects
- country
- outliers
- no winsorizing / trimming found
- missing values
- drop rows with missing values; replace missing with another value (imputation)
- sample years
- 2006–2019 (as on the package page)
- checks
- none of the design's checks found
- commands
areg- clusters by
- does not cluster
- fixed effects
- time
- outliers
- no winsorizing / trimming found
- missing values
- drop rows with missing values
- checks
- none of the design's checks found
Sample screens
-
exclude financials1% · 11
4 examples in the code
- Intangibles, markups, and the measurement of productivity growth
Journal of Monetary Economics 2021 · pkg 14284
drop if sic_2d >= 60 & sic_2d <= 69
- Not a Typical Firm: Capital–Labor Substitution and Firms' Labor Shares
American Economic Journal: Macroeconomics 2026 · pkg 17491
drop if naics2 ==52 // financials
- Reorganization or Liquidation: Bankruptcy Choice and Firm Dynamics
Review of Economic Studies 2021 · pkg 17756
drop if sic>=6000 & sic <=6999
- Inflation Risk and the Finance-Growth Nexus
Review of Economic Studies 2026 · pkg 19083
keep if Fin == 0
- Intangibles, markups, and the measurement of productivity growth
Journal of Monetary Economics 2021 · pkg 14284
-
exclude public administration / unclassified0% · 8
4 examples in the code
- The Economic Impacts of COVID-19: Evidence from a New Public Database Built Using Private
Quarterly Journal of Economics 2024 · pkg 7415
drop if naics == 92 // drop those working in public sector to match CES (Total Private Employment)
- IT and Urban Polarization
American Economic Journal: Macroeconomics 2026 · pkg 11720
drop if naics3>=920 /* dropping either unspecified industries or government */
- The comparative advantage of cities
Journal of International Economics 2020 · pkg 12222
drop if naics==92 //County Business Patterns don't include public administration or armed forces, so we drop them here
- Do Firms Value Court Enforceability of Noncompete Agreements? A Revealed Preference Approa
Review of Economics and Statistics 2024 · pkg 13164
drop if naics2>90
- The Economic Impacts of COVID-19: Evidence from a New Public Database Built Using Private
Quarterly Journal of Economics 2024 · pkg 7415
-
keep only manufacturing0% · 7
4 examples in the code
- Labor Market Power
American Economic Review 2022 · pkg 11191
keep if substr(naics_old,1,2)=="31" | substr(naics_old,1,2)=="32" |substr(naics_old,1,2)=="33"
- Input Linkages and the Transmission of Shocks: Firm-Level Evidence from the 2011 Tōhoku Ea
Review of Economics and Statistics 2019 · pkg 13882
drop if substr(naics_code,1,1)~="3"
- Distorted Innovation: Does the Market Get the Direction of Technology Right?
AEA Papers and Proceedings 2023 · pkg 16960
keep if naics_2g=="31"|naics_2g=="32"|naics_2g=="33" // Keep the manufacturing industries
- Input Sourcing under Climate Risk: Evidence from U.S. Manufacturing Firms
Review of Economic Studies 2026 · pkg 19331
keep if naics2=="31" | naics2=="32" | naics2=="33"
- Labor Market Power
American Economic Review 2022 · pkg 11191
-
exclude utilities0% · 6
4 examples in the code
- Intangibles, markups, and the measurement of productivity growth
Journal of Monetary Economics 2021 · pkg 14284
drop if sic_2d == 49
- Not a Typical Firm: Capital–Labor Substitution and Firms' Labor Shares
American Economic Journal: Macroeconomics 2026 · pkg 17491
drop if naics2 ==22 // utilities
- Reorganization or Liquidation: Bankruptcy Choice and Firm Dynamics
Review of Economic Studies 2021 · pkg 17756
drop if sic>=4900 & sic<=4999
- Labor Market Monopsony Power and the Dynamic Gains to Openness Reforms
International Economic Review 2026 · pkg 81124
drop if sic>=4900 & sic<=4999
- Intangibles, markups, and the measurement of productivity growth
Journal of Monetary Economics 2021 · pkg 14284
-
NYSE / AMEX / Nasdaq only (exchcd 1-3)0% · 3
3 examples in the code
- Common Ownership and Entrepreneurship
AEA Papers and Proceedings 2021 · pkg 11142
keep if exchcd==1|exchcd==2|exchcd==3|exchcd==31|exchcd==32|exchcd==33;
- Inflation Risk and the Finance-Growth Nexus
Review of Economic Studies 2026 · pkg 19083
keep if (exchcd>=1)&(exchcd<=3)
- Biased Inference due to Prior Beliefs: Evidence from the Field
Journal of Political Economy Microeconomics 2026 · pkg 76828
filter( shrcd %in% c(10, 11), exchcd %in% c(1, 2, 3), primexch %in% c("N", "A", "Q") ) %>%
- Common Ownership and Entrepreneurship
AEA Papers and Proceedings 2021 · pkg 11142
-
common shares only (shrcd 10/11)0% · 3
3 examples in the code
- Common Ownership and Entrepreneurship
AEA Papers and Proceedings 2021 · pkg 11142
keep if shrcd==10|shrcd==11|shrcd==12;
- The Decline of Too Big to Fail
American Economic Review 2025 · pkg 11582
keep if shrcd==10 | shrcd==11
- Biased Inference due to Prior Beliefs: Evidence from the Field
Journal of Political Economy Microeconomics 2026 · pkg 76828
filter( shrcd %in% c(10, 11), exchcd %in% c(1, 2, 3), primexch %in% c("N", "A", "Q") ) %>%
- Common Ownership and Entrepreneurship
AEA Papers and Proceedings 2021 · pkg 11142
-
keep only financials0% · 3
3 examples in the code
- Inflation Risk and the Finance-Growth Nexus
Review of Economic Studies 2026 · pkg 19083
keep if Fin == 1
- Plants in Space
Journal of Political Economy 2024 · pkg 80723
keep if sic2>=60 & sic2<=67
- Sources and Transmission of Country Risk
Review of Economic Studies 2024 · pkg 126860
keep if fin == 1
- Inflation Risk and the Finance-Growth Nexus
Review of Economic Studies 2026 · pkg 19083
-
exclude financials + public administration / unclassified0% · 1
1 example in the code
- Firm Inattention and the Efficacy of Monetary Policy: A Text-Based Approach
Review of Economic Studies 2025 · pkg 18695
drop if inlist(naics2, 52, 92)
- Firm Inattention and the Efficacy of Monetary Policy: A Text-Based Approach
Review of Economic Studies 2025 · pkg 18695
Share of 1976 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
343 of 1,976 packages (17%) winsorize or trim something: 306 winsorize, 55 trim, 45 by group (e.g. by year).
-
winsorize 1/9942% · 144
4 examples in the code
- Gambling, Saving, and Lumpy Liquidity Needs
American Economic Journal: Applied Economics 2021 · pkg 3475
replace timeupdate_raw = r(p1) if timeupdate_raw < r(p1)
- The Deposits Channel of Monetary Policy
Quarterly Journal of Economics 2017 · pkg 7368
winsor temp2, gen(d1_`name') p(0.01)
- The Economic Impacts of COVID-19: Evidence from a New Public Database Built Using Private
Quarterly Journal of Economics 2024 · pkg 7415
replace emp_incq1_apr2020 = `p1' if emp_incq1_apr2020 < `p1' & !mi(emp_incq1_apr2020)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):replace emp_incq1_apr2020 = r(p1) if emp_incq1_apr2020 < r(p1) & !mi(emp_incq1_apr2020)
- Permanent Capital Losses after Banking Crises
Quarterly Journal of Economics 2026 · pkg 7416
winsor2 Dgr, cuts(1 99) replace
- Gambling, Saving, and Lumpy Liquidity Needs
American Economic Journal: Applied Economics 2021 · pkg 3475
-
winsorize none/9920% · 69
4 examples in the code
- Gambling, Saving, and Lumpy Liquidity Needs
American Economic Journal: Applied Economics 2021 · pkg 3475
replace betmean = r(p99) if betmean > r(p99) & wave==`w'
- Investing in Infants: the Lasting Effects of Cash Transfers to New Families
Quarterly Journal of Economics 2022 · pkg 7358
replace `y' =r(p99) if `y'>r(p99) & `y'!=.
- Measuring the Equilibrium Impacts of Credit: Evidence from the Indian Microfinance Crisis
Quarterly Journal of Economics 2021 · pkg 7387
winsor2 dly_wage, cuts(0 99) suffix(_w) label
- The Economic Impacts of COVID-19: Evidence from a New Public Database Built Using Private
Quarterly Journal of Economics 2024 · pkg 7415
replace emp_index_combined = r(p99) if emp_index_combined > r(p99)
- Gambling, Saving, and Lumpy Liquidity Needs
American Economic Journal: Applied Economics 2021 · pkg 3475
-
winsorize 5/9513% · 44
4 examples in the code
- Investor Memory and Biased Beliefs: Evidence from the Field
Quarterly Journal of Economics 2025 · pkg 7493
m[, aret_1day_v2 := Winsorize(aret_1day_v2, quantile(aret_1day_v2, probs = c(0.05, 0.95), na.rm = T))]
- Ideas Have Consequences: The Impact of Law and Economics on American Justice
Quarterly Journal of Economics 2026 · pkg 7656
winsor2 wjt5, replace cuts(5 95)
- Improving Management Through Worker Evaluations: Evidence from Auto Manufacturing
Quarterly Journal of Economics 2022 · pkg 7668
winsor2 `var', replace cuts(5 95)
- Is There Any Future for a US Labor Movement?
Journal of Economic Perspectives 2022 · pkg 11248
winsor annualwage, p(.05) gen(annwage_w)
- Investor Memory and Biased Beliefs: Evidence from the Field
Quarterly Journal of Economics 2025 · pkg 7493
-
trim 1/999% · 30
4 examples in the code
- Gambling, Saving, and Lumpy Liquidity Needs
American Economic Journal: Applied Economics 2021 · pkg 3475
drop if resids4 <r(p1) | resids4 > r(p99)
- Capitalists in the Twenty-First Century
Quarterly Journal of Economics 2019 · pkg 7496
trim_tails `v', level(.01)
- O-Ring Production Networks
Journal of Political Economy 2024 · pkg 7813
keep if avgwage_adj_b>r(p1) & avgwage_adj_b<r(p99)
- Resisting Social Pressure in the Household Using Mobile Money: Experimental Evidence on Mi
American Economic Review 2024 · pkg 11442
winsor2 `var', cuts(1, $top_tr) trim
- Gambling, Saving, and Lumpy Liquidity Needs
American Economic Journal: Applied Economics 2021 · pkg 3475
-
winsorize none/957% · 25
4 examples in the code
- Discrimination in Multiphase Systems: Evidence from Child Protection
Quarterly Journal of Economics 2024 · pkg 7491
replace pre_n_prior_inv=r(p95) if pre_n_prior_inv>r(p95)
- The Psychosocial Value of Employment: Evidence from a Refugee Camp
American Economic Review 2022 · pkg 11252
winsor2 financial_3b, cuts(0 95)
- The Impact of Regulation on Innovation
American Economic Review 2023 · pkg 11489
winsor2 Y if Y > 0, cuts(0 95) replace
- Saving for Multiple Financial Needs: Evidence from Lockboxes and Mobile Money in Malawi
Review of Economics and Statistics 2023 · pkg 12938
replace ms_b2_hours_r=r(p95) if ms_b2_hours_r>r(p95) & !missing(ms_b2_hours_r) /*winsorizing*/
- Discrimination in Multiphase Systems: Evidence from Child Protection
Quarterly Journal of Economics 2024 · pkg 7491
-
winsorize 1/99 by group6% · 22
4 examples in the code
- From Public Labs to Private Firms: Magnitude And Channels of Local R&D Spillovers
Quarterly Journal of Economics 2025 · pkg 7361
winsor2 tx, by(year) cuts(1 99) replace
- The Impact of Regulation on Innovation
American Economic Review 2023 · pkg 11489
winsor2 shock_all if year >= t0+2 & year <= 2007 & share_ca_export_t0 != 0, by(year) replace
- Social Welfare Portability and Migration: Evidence from India’s Public Distribution System
American Economic Journal: Economic Policy 2025 · pkg 16310
winsor2 num_emig planned num_new_emig num_emig_urban num_emig_rural num_emig_inter_dis num_emig_inter_sta num_emig_prop num_emig_rural_prop num_emig_urban_prop …
- Promoting Wellness or Waste? Evidence from Antidepressant Advertising
American Economic Journal: Microeconomics 2022 · pkg 16738
winsor2 antidep_`x', replace cuts(1 99) by(prodnme)
- From Public Labs to Private Firms: Magnitude And Channels of Local R&D Spillovers
Quarterly Journal of Economics 2025 · pkg 7361
-
winsorize 0.5/99.54% · 13
4 examples in the code
- Permanent Capital Losses after Banking Crises
Quarterly Journal of Economics 2026 · pkg 7416
winsor2 Rtot_bank_excess Rtot_nonfin_excess, cuts(0.5 99.5) replace
- Labor Market Power
American Economic Review 2022 · pkg 11191
winsor direct_elast5_inv, p(.005) gen(direct_elast5_inv_wins)
- The Dynamics of Large Inflation Surges
Review of Economics and Statistics 2025 · pkg 13094
winsor `var', p(0.005) gen(`var'_wins)
- Too Much Pay-Performance Sensitivity?
Review of Economics and Statistics 2012 · pkg 13385
winsor psdresi, gen(wpsdresi) p(.005)
- Permanent Capital Losses after Banking Crises
Quarterly Journal of Economics 2026 · pkg 7416
-
winsorize 2.5/97.54% · 13
4 examples in the code
- Do Banks Pass through Credit Expansions to Consumers Who want to Borrow?
Quarterly Journal of Economics 2018 · pkg 7529
qui winsor2 lhs, cuts(2.5 97.5)
- Rising Markups and the Role of Consumer Preferences
Journal of Political Economy 2025 · pkg 7745
markup.rel.lerner.median = Winsorize(markup.rel.lerner.median, probs = c(0.025,0.975))
- The Life Cycle of Products: Evidence and Implications
Journal of Political Economy 2024 · pkg 7789
winsor2 `var', suffix(`var'_w) cuts(2.5 97.5)
- Capital-Reallocation Frictions and Trade Shocks
American Economic Journal: Macroeconomics 2023 · pkg 16926
winsor2 inv_rate, cuts(2.5 97.5) suffix(_975)
- Do Banks Pass through Credit Expansions to Consumers Who want to Borrow?
Quarterly Journal of Economics 2018 · pkg 7529
Share of the 343 packages that winsorize or trim (a package can use several cuts). Greyed: fewer than 10 packages.
Missing values
-
drop rows with missing values70% · 1388
4 examples in the code
- Where Is Pollution Moving? Environmental Markets and Environmental Justice
AEA Papers and Proceedings 2021 · pkg 3474
drop if missing(lat) | missing(lon)
- Gambling, Saving, and Lumpy Liquidity Needs
American Economic Journal: Applied Economics 2021 · pkg 3475
drop if sindex==.
- Investing in Infants: the Lasting Effects of Cash Transfers to New Families
Quarterly Journal of Economics 2022 · pkg 7358
drop if mastid==.
- From Public Labs to Private Firms: Magnitude And Channels of Local R&D Spillovers
Quarterly Journal of Economics 2025 · pkg 7361
drop if stock == 0 | stock == .
- Where Is Pollution Moving? Environmental Markets and Environmental Justice
AEA Papers and Proceedings 2021 · pkg 3474
-
replace missing with zero (imputation)52% · 1031
4 examples in the code
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
replace smoke_current = 0 if mi(smoke_current)
- Gambling, Saving, and Lumpy Liquidity Needs
American Economic Journal: Applied Economics 2021 · pkg 3475
replace incthresh=0 if incthresh==.
- Investing in Infants: the Lasting Effects of Cash Transfers to New Families
Quarterly Journal of Economics 2022 · pkg 7358
replace child_tot =0 if child_tot==. & parent_have_1040==1
- From Public Labs to Private Firms: Magnitude And Channels of Local R&D Spillovers
Quarterly Journal of Economics 2025 · pkg 7361
replace s_brut = 0 if mi(s_brut)
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
-
replace missing with another value (imputation)51% · 1004
4 examples in the code
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
replace data = "CHARLS" if mi(data)
- Gambling, Saving, and Lumpy Liquidity Needs
American Economic Journal: Applied Economics 2021 · pkg 3475
replace blw_tot = bet_lastweek_tot if blw_tot==.
- Investing in Infants: the Lasting Effects of Cash Transfers to New Families
Quarterly Journal of Economics 2022 · pkg 7358
replace days = daysN if days==.
- From Public Labs to Private Firms: Magnitude And Channels of Local R&D Spillovers
Quarterly Journal of Economics 2025 · pkg 7361
replace naf = nafrev2 if mi(naf)
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
-
interpolate missing values17% · 338
4 examples in the code
- Investing in Infants: the Lasting Effects of Cash Transfers to New Families
Quarterly Journal of Economics 2022 · pkg 7358
tsfill, full
- From Public Labs to Private Firms: Magnitude And Channels of Local R&D Spillovers
Quarterly Journal of Economics 2025 · pkg 7361
tsfill, full
- Banking Crises Without Panics
Quarterly Journal of Economics 2021 · pkg 7386
tsfill
- Measuring the Equilibrium Impacts of Credit: Evidence from the Indian Microfinance Crisis
Quarterly Journal of Economics 2021 · pkg 7387
tsfill, full
- Investing in Infants: the Lasting Effects of Cash Transfers to New Families
Quarterly Journal of Economics 2022 · pkg 7358
Share of 1976 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 estimation74% · 1460
- default iid only15% · 288
- robust only (never clusters)10% · 201
- other (HAC, bootstrap) only1% · 24
Of the 1,973 packages with a model that shows the design.
Main clustering level
-
author-named unitnames the reader has no word for, commonest first:
dyad,cc,cn,uniqid,client_id,dist,gbcode,ij43% · 6214 examples in the code
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
areg hav_pension treat $CONTROL_VAR if rural & age > `a' & age <= `b', a(countyID) cluster(cntygb)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):areg hav_pension treat men i.educ age age2 i.year if rural & age > `a' & age <= `a' + 1, a(countyID) cluster(cntygb)
- From Public Labs to Private Firms: Magnitude And Channels of Local R&D Spillovers
Quarterly Journal of Economics 2025 · pkg 7361
reghdfe ln_eng_sbrut E_post11 if NAF_labex_accept == 1 & ZE_labex_accept == 1 , a(ZE2010#year gp) cl(mlabexid)
- Building Resilient Health Systems: Experimental Evidence from Sierra Leone and The 2014 Eb
Quarterly Journal of Economics 2021 · pkg 7365
m <- felm(total ~ I(pld_treatment_chr == "Pooled") | triplet_id + week | 0 | section_code, data = reg_dt[triplet_id != triplets[i]]) - Peer Effects and the Gender Gap in Corporate Leadership: Evidence from MBA Students
Quarterly Journal of Economics 2026 · pkg 7367
eststo `y': areg `y' femaleshare,ab(Class) cluster(section_id)
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
-
unspecified id (id, i, group...)11% · 154
4 examples in the code
- Gambling, Saving, and Lumpy Liquidity Needs
American Economic Journal: Applied Economics 2021 · pkg 3475
reghdfe btm ct ct0 ih_inc betprop lmeaninc if srvrd>2, a(srvrd week ntx) vce(cluster id)
- Answering the Call of Automation: How the Labor Market Adjusted to Mechanizing Telephone O
Quarterly Journal of Economics 2024 · pkg 7501
reghdfe ln1_telocc_telind bbin* fbin* ln1_withocc, /// absorb(id c.ln_ctrlpop#i.ones i.year /// c.ln_ctrlpop#i.year) cluster(clustervar)
- Capital Allocation and Productivity in South Europe
Quarterly Journal of Economics 2017 · pkg 7512
reghdfe inv_lagK lagTFP lagln_NW_model log_lagK , tolerance(1e-5) absorb(id YEAR#sec4 YEAR sec4 ) vce(cluster id)
- The Assessment Gap: Racial Inequalities in Property Taxation
Quarterly Journal of Economics 2022 · pkg 7550
reg=felm(ag2 ~ black.factorvariable | group:year | 0 |group,data=zz)
- Gambling, Saving, and Lumpy Liquidity Needs
American Economic Journal: Applied Economics 2021 · pkg 3475
-
county / city / district5% · 74
4 examples in the code
- Consequences of the Clean Water Act and the Demand for Water Quality
Quarterly Journal of Economics 2019 · pkg 7355
xi: areg seweragecapoutlay_cumul foia_dollars_cumul i.year /// , absorb(id_city) cluster(id_city) - The Deposits Channel of Monetary Policy
Quarterly Journal of Economics 2017 · pkg 7368
reghdfe log_tot_amt d1_ffm_herfdepcty_amt herfdepcty_amt, absorb(fips year fipszero) cluster(fips) tolerance(0.00001) maxiterations(100000)
- Regressive Sin Taxes, with an Application to the Optimal Soda Tax
Quarterly Journal of Economics 2019 · pkg 7396
reghdfe L0lnAvPricePaidPerKG L0$PrimaryIV lncountyIncome L0feature L0display $DemandControls i.YQ [aw=projection_factor], /// absorb(HHxCounty) vce(cluster …As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe L0lnAvPricePaidPerKG L0LOdmNat_lnPrice lncountyIncome L0feature L0display $DemandControls i.YQ [aw=projection_factor], absorb(HHxCounty) vce(cluster cou …
- The Economic Impacts of COVID-19: Evidence from a New Public Database Built Using Private
Quarterly Journal of Economics 2024 · pkg 7415
reg norm_spend_13_15_100 med_2br_rent_work_zcta /// if q_inc == 1 /// [w = pop_2018], vce(cluster county_fips) /// absorb(county_fips)
- Consequences of the Clean Water Act and the Demand for Water Quality
Quarterly Journal of Economics 2019 · pkg 7355
-
state / province5% · 70
4 examples in the code
- Medicaid and Mortality: New Evidence From Linked Survey and Administrative Data
Quarterly Journal of Economics 2021 · pkg 7405
cap noi reghdfe diedpanel posttreated sameyear [pweight=pwgt] if target1==1 & age2014 > 54, absorb(st dyear year) cluster(st)
- Land Security and Mobility Frictions
Quarterly Journal of Economics 2024 · pkg 7526
reghdfe dummy_nonagr obs_hh i.gender i.bin_edu logage age age2 i.year i.village, absorb(village year) cluster(prov)
- The Labor Market Effects of Legal Restrictions on Worker Mobility
Journal of Political Economy 2025 · pkg 7708
reghdfe ln_earnings_def std_score $controls [pweight = asecwt] if $conditions & uhrsworkly>35 & uhrsworkly<99, a(statefip year#region) vce(cluster statefip)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe ln_earnings_def std_score male white hispanic age age2 college married i.metro [pweight = asecwt] if workly==2 & age>=18 & empstat!=1 & uhrsworkly>35 & …
- Temperature, Labor Reallocation, and Industrial Production: Evidence from India
American Economic Journal: Applied Economics 2021 · pkg 11206
eststo output: reghdfe lngsv annual_temp_uw temp_NON_PW temp_BELOW temp_BELOW_NONPW monsoon_rain rain_NON_PW rain_BELOW rain_BELOW_NONPW STY*, absorb(sd2T sy2T) …
- Medicaid and Mortality: New Evidence From Linked Survey and Administrative Data
Quarterly Journal of Economics 2021 · pkg 7405
-
country4% · 53
4 examples in the code
- Growth Experiences and Trust in Government
Quarterly Journal of Economics 2026 · pkg 7441
qui reghdfe trust_govt wgrowth_rate_1 yob_ln_gdppc if sample==1 & survey_year!=`x', absorb(ccode subregion_yob svy_survey_year age $basic) cluster(ccode) level( …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui reghdfe trust_govt wgrowth_rate_1 yob_ln_gdppc if sample==1 & survey_year!=`x', absorb(ccode subregion_yob svy_survey_year age sex marital religion edu) clu …
- Global Firms in Large Devaluations
Quarterly Journal of Economics 2024 · pkg 7625
xi: xtreg ratio`i' dlRER i.year i.ccode, fe cluster(id)
- Firm-Embedded Productivity and Cross-Country Income Differences
Journal of Political Economy 2023 · pkg 7812
reghdfe `var_dep' `variablelist' if year==`yy', abs(`abslist') vce(cluster `clusterlist')
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe ln_ctfp k_y ln_hc if year==`yy', abs(year) vce(cluster isocode)
- Potatoes, milk, and the Old World population boom
Journal of Development Economics 2014 · pkg 11883
xi: xtreg ln_population `ln_potato_flexible' `milk_flexible' `ln_pot_milk_flexible' i.year, fe i(wc) cluster(isocode)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):xi: xtreg ln_population ln_wpot_1100 ln_wpot_1200 ln_wpot_1300 ln_wpot_1400 ln_wpot_1500 ln_wpot_1600 ln_wpot_1700 ln_wpot_1750 ln_wpot_1800 ln_wpot_1850 ln_wpo …
- Growth Experiences and Trust in Government
Quarterly Journal of Economics 2026 · pkg 7441
-
person4% · 53
4 examples in the code
- Disability Insurance: Error Rates and Gender Differences
Journal of Political Economy 2025 · pkg 7796
qui reghdfe earn_sga_3 rejected rejected_limited cantwork_notemp_appl female college racex2 experience /// doctor* ssi_only ssi_and_di m … - German Long-Term Health Insurance: Theory Meets Evidence
Journal of Political Economy 2025 · pkg 7804
xi: xtreg topublic age CurrentlyUnemployed civilservant selfemployed whitecollar hospitalnights doctorvisits fulltimeemployed parttimeemployed jobtraining Haup …
- Monitoring in Small Firms: Experimental Evidence from Kenyan Public Transit
American Economic Review 2024 · pkg 11500
reghdfe revenue mileage treat miles_treat if ed < 186 & mileage > 0 , a(d rid) cl(pid)
- Wealth and health behavior: Testing the concept of a health cost
European Economic Review 2014 · pkg 11971
xtreg logxpmeal lottery l.loginc age age2 sex l.region* l.hhsize l.nchild deduc* l.hlstat* l.djbstat* l.dmlstat* dwave*, fe vce(cluster pid)
- Disability Insurance: Error Rates and Gender Differences
Journal of Political Economy 2025 · pkg 7796
-
firm3% · 42
4 examples in the code
- How Americans Respond to Idiosyncratic and Exogenous Changes in Household Wealth and Unear
Quarterly Journal of Economics 2024 · pkg 7451
felm( as.formula("winner ~ has_w2_wages + female + primary_earner + older_member + same_age + db_w2_wages + age | tin + tax_yr | 0 | tin"), # nolint da … - Capitalists in the Twenty-First Century
Quarterly Journal of Economics 2019 · pkg 7496
reghdfe `var' Dn5p-Dn2 D0-D5p, abs(ein year) cluster(ein)
- Does Taxing Business Owners Affect Employees? Evidence From A Change in the Top Marginal T
Quarterly Journal of Economics 2024 · pkg 7505
eststo r`r': quietly reghdfe `rlog'`o' `events' [aw=n_ft_lower_2012] if (`t'==1 | `t'==0), absorb(`r`r'' firm_tin) vce(cluster firm_tin)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo r`r': quietly reghdfe ln`o' t2008-t2010 t2012+1-t2016 y2008-y2010 y2012+1-y2016 tt1112 [aw=n_ft_lower_2012] if (tt1112==1 | tt1112==0), absorb(`r`r'' fir …
- Regulating Conglomerates: Evidence from an Energy Conservation Program in China
American Economic Review 2025 · pkg 11601
reghdfe lenergy `treat_yeardummy', absorb(`absorb3') cluster(`cluster')
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe lenergy treat_year2001-treat_year2005 treat_year2007-treat_year2010, absorb(firmid ind2_year province_year) cluster(firmid)
- How Americans Respond to Idiosyncratic and Exogenous Changes in Household Wealth and Unear
Quarterly Journal of Economics 2024 · pkg 7451
-
two-way: author-named unit + author-named unitnames the reader has no word for, commonest first:
dyad,cc,cn,uniqid,client_id,dist,gbcode,ij3% · 414 examples in the code
- How Do You Identify a Good Manager?
Quarterly Journal of Economics 2026 · pkg 7558
reghdfe `lhs' `var', abs( nmonth cebe ) cluster(c_set cebe)
- The More We Die, The More We Sell? A Simple Test of the Home-Market Effect
Quarterly Journal of Economics 2019 · pkg 7592
reghdfe lnsales lndaly_p_dest lndaly_p_sales if year==`year', absorb(sales_country#dest_country gbd) vce(cl sales_country dest_country)
- Enhancing the Efficacy of Teacher Incentives through Framing: A Field Experiment
American Economic Journal: Economic Policy 2022 · pkg 11271
quietly reghdfe math_std teacher_any_y1 $oldX_vam if year == 1, /// cluster(teacher_id newstudid) noabsorb
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):quietly reghdfe math_std teacher_any_y1 grade_2 grade_3 grade_4 grade_5 grade_6 grade_7 grade_8 grade_9 school_2 school_3 school_4 school_5 school_6 school_7 …
- Intergenerational Mobility in India: New Measures and Estimates across Time and Social Gro
American Economic Journal: Applied Economics 2024 · pkg 11488
eststo: reghdfe son_ed_rank sc63 post_late if sc == 1 & sc77 == 1 & father_ed_rank_s <= 60 & decade >= 1950 [pw=wt], /// absorb(region_cohort jati_region ja …
- How Do You Identify a Good Manager?
Quarterly Journal of Economics 2026 · pkg 7558
-
time2% · 28
4 examples in the code
- Investor Memory and Biased Beliefs: Evidence from the Field
Quarterly Journal of Economics 2025 · pkg 7493
f1 <- felm(expret30day_market_rate ~ memrableperiod_pret | age + gender + education + total_wealth + total_income + accountcheck_freq + newscheck_f … - The Macroeconomic Impact of Climate Change: Global Versus Local Temperature
Quarterly Journal of Economics 2026 · pkg 7548
`verb' reghdfe F(`i').`var' L(0/`ps').`shock' L(1/`p').`var' `cntrls', /// absorb(country_code_en) vce(cluster `clusterlevel')
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe F(`i').`var' L(0/4).gtmp_noaa_aw_dtfe2s L(1/4).`var' L(0/4).( dummyrecession ) L(1/4).(dlnrgdppc_world_bud dlnpcom treasury10y) c.lintrend#i.subregion_e …
- Spatial Influences in Upward Mobility
Journal of Political Economy 2024 · pkg 7798
qui areg dpri i_shore pri if insample, absorb (mayear) vce(cluster mayear)
- The Price of War
American Economic Review 2026 · pkg 11750
eststo: reghdfe lcinc lgdp, absorb(iso year) cluster(year) nocons
- Investor Memory and Biased Beliefs: Evidence from the Field
Quarterly Journal of Economics 2025 · pkg 7493
-
geography (other)2% · 22
4 examples in the code
- Can Redistribution Change Policy Views? Aid and Attitudes toward Refugees
Journal of Political Economy 2025 · pkg 7734
eststo e_index: areg e_rf_index ref_info ref_cashonly, a(ref_stratum) cluster(village_id)
- Spatial Spillovers of Conflict in Somalia
American Economic Review 2026 · pkg 11754
areg price_maize_log i.market acled_lags0to6_mean acled_market rainfallmm_growing , cl(market) a(grow_y_m)
- The heavy plow and the agricultural revolution in Medieval Europe
Journal of Development Economics 2016 · pkg 11945
xi: areg CityCountDens qualityluvisolbarley55_I_1000 i.year if nutslevel ==2 & undefinedsoilshare < 0.2 & year < 1400, a(nuts_code) cluster(nuts_code)
- Informational Shocks and Street-Food Safety: A Field Study in Urban India
Review of Economics and Statistics 2021 · pkg 13110
areg `x' T $control, r absorb(period) cluster(block)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):areg `x' T age male owner i.education years_vend cooked_food food_light food_heavy food_meal food_liquid food_fruits food_sweets food_otheropt i.area i.enumerat …
- Can Redistribution Change Policy Views? Aid and Attitudes toward Refugees
Journal of Political Economy 2025 · pkg 7734
Share of the 1460 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
1889 of 1,973 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:
s,agebin,cty,dist,dyad,grade,mid,cc32% · 6054 examples in the code
- Identifying Prediction Mistakes in Observational Data
Quarterly Journal of Economics 2024 · pkg 7352
release_model = fixest::feols(definitelyReleasedFlag ~ WXZ_cells | court_by_time_cells, data = data, warn = FALSE, notes = FALSE) - Investing in Infants: the Lasting Effects of Cash Transfers to New Families
Quarterly Journal of Economics 2022 · pkg 7358
qui reghdfe `y' i.bcut_pbo##c.z_pbo ${x_`covar'} /// if ${tyrcs_`tyrc'} &inrange(z_pbo,-`wday'-`donut',`wday'+`donut'-1)& !inrange(z_pbo,-`donut',`donut …As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui reghdfe `y' i.bcut_pbo##c.z_pbo ${x_tyrc} if ${tyrcs_1979_1991} &inrange(z_pbo,-20-8,20+8-1)& !inrange(z_pbo,-8,8-1) ${r_`samp'} &us_born==1 ${a_`age'} &pob … - Identifying Sources of Inefficiency in Healthcare
Quarterly Journal of Economics 2020 · pkg 7373
areg reperf12 $agegenderrace $riskfactors_no_hxangm $labvalues, absorb(hosp);
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):areg reperf12 age1_fw-age5_fb "prevrvsc oldmi hxchf dement hxdm hxhtn hxleuk hxlowef hxmetca alblow albm bilihi bilim crecat2 crecat3 crecatm critlow critm, abs …
- Implicit Stereotypes: Evidence From Teachers’ Gender Bias
Quarterly Journal of Economics 2019 · pkg 7410
areg stdinvalsi_mat8 $stud_controls $tech_controls $teach_addcontrols, absorb(anno_scuola8) robust cluster(INS_MAT8)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):areg stdinvalsi_mat8 immigrant fem_immigrant second_gen_imm fem_second_gen_imm high_edu_mother fem_high_edu_mother miss_edu_mother fem_miss_edu_mother fem_miss_ …
- Identifying Prediction Mistakes in Observational Data
Quarterly Journal of Economics 2024 · pkg 7352
-
author-named unit + timenames the reader has no word for, commonest first:
s,agebin,cty,dist,dyad,grade,mid,cc10% · 1854 examples in the code
- The Quality and Efficiency of Public and Private Firms: Evidence from Ambulance Services
Quarterly Journal of Economics 2022 · pkg 7381
qui reghdfe `x' inter private var if amb==1 & extra==0, absorb(fe850 year month) vce(cluster fe850)
- Measuring the Equilibrium Impacts of Credit: Evidence from the Indian Microfinance Crisis
Quarterly Journal of Economics 2021 · pkg 7387
areg `y' exposure`i' $controls_D1, absorb(state_dist) vce(cluster state_dist)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):areg `y' exposure`i' c.hh_pc_cons_m_ea_66#i.round c.casual_wage_66#i.round i.round c.num_hh_rural_dumX6* c.num_hh_rural_2_dumX6* i.GLP_2008_rural_*_dumX6* i.GLP …
- Capital Accumulation and Structural Transformation
Quarterly Journal of Economics 2020 · pkg 7542
qui reghdfe `outcome' dlog_A_soy_p99_y2-dlog_A_soy_p99_y15 $all_controls_y , absorb(i.AMC i.year) cluster(AMC)
- How Do You Identify a Good Manager?
Quarterly Journal of Economics 2026 · pkg 7558
reghdfe `v' post $controls $sample , abs(cebe nmonth) cluster(cebe)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe `v' post i.other_arrival $sample , abs(cebe nmonth) cluster(cebe)
- The Quality and Efficiency of Public and Private Firms: Evidence from Ambulance Services
Quarterly Journal of Economics 2022 · pkg 7381
-
unspecified id (id, i, group...)6% · 111
4 examples in the code
- Grantmaking, Grading on a Curve, and the Paradox of Relative Evaluation in Nonmarkets
Quarterly Journal of Economics 2024 · pkg 7666
areg ratio devPctAgree,a(grp)
- Estimation of a Life-Cycle Model with Human Capital, Labor Supply, and Retirement
Journal of Political Economy 2024 · pkg 7738
xi: xtreg lnwage i.age, fe i(id)
- A Structural Meta-Analysis of Welfare Reform Experiments and Their Impacts on Children
Journal of Political Economy 2026 · pkg 7754
feols(log(EARN) ~ ageQ + unemp | id,data=.) %>%
- The Life Cycle of Products: Evidence and Implications
Journal of Political Economy 2024 · pkg 7789
areg logrevenue i.age cohort_nd*, absorb(fe) cluster(module)
- Grantmaking, Grading on a Curve, and the Paradox of Relative Evaluation in Nonmarkets
Quarterly Journal of Economics 2024 · pkg 7666
-
time5% · 99
4 examples in the code
- Do Banks Pass through Credit Expansions to Consumers Who want to Borrow?
Quarterly Journal of Economics 2018 · pkg 7529
reghdfe lhs i.year, absorb(a=zero#bank#fico_coarse_2 b=lc#zero)
- Dollar Dominance and the Transmission of Monetary Policy
Quarterly Journal of Economics 2026 · pkg 7657
areg dollarshare homoshare, absorb(Year)
- Mr. Keynes Meets the Classics: Government Spending and the Real Exchange Rate
Journal of Political Economy 2024 · pkg 7753
xtreg g0_gspnd g0_milspnd_nc l.g0_gspnd warall l.g0_rgdp i.year, fe vce(cl cid)
- Spatial Influences in Upward Mobility
Journal of Political Economy 2024 · pkg 7798
qui areg dpri i_shore pri if insample, absorb (mayear) vce(cluster mayear)
- Do Banks Pass through Credit Expansions to Consumers Who want to Borrow?
Quarterly Journal of Economics 2018 · pkg 7529
-
country3% · 54
4 examples in the code
- Banking Crises Without Panics
Quarterly Journal of Economics 2021 · pkg 7386
reghdfe Fd`i'`LHS' $RHS `X`j'' if smp_`LHS'==1 , absorb( ccode ) cluster(ccode year)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe Fd`i'`LHS' B1_R_B B2_R_B B3_R_B B4_R_B B6_R_B B7_R_B B8_R_B B1_R_N B2_R_N B3_R_N B4_R_N B6_R_N B7_R_N B8_R_N `X`j'' if smp_`LHS'==1 , absorb( ccode ) cl …
- The Mission: Human Capital Transmission, Economic Persistence, and Culture in South Americ
Quarterly Journal of Economics 2019 · pkg 7444
qui: xtreg popd mission temp_avg rainfall alti landlocked altisq tempsq rainsq , r fe
- Fiscal Stimulus under Sovereign Risk
Journal of Political Economy 2023 · pkg 7826
cap reghdfe dlogG dlogY L.dlogG if (year >= 1980), absorb(country) vce(cl country year)
- Measuring Geopolitical Risk
American Economic Review 2022 · pkg 11235
reghdfe disasterc_plus $regressors_m2, ab(country) cl(country year)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe disasterc_plus Lggdp_full SGPR SGPRCO, ab(country) cl(country year)
- Banking Crises Without Panics
Quarterly Journal of Economics 2021 · pkg 7386
-
unspecified id (id, i, group...) + time2% · 45
4 examples in the code
- Union Reform, Performance Pay, and New Teacher Supply: Evidence from Wisconsin's Act 10
AEA Papers and Proceedings 2021 · pkg 11130
areg perc_teach c_7 c_6 c_5 c_4 c_3 c_2 c c1 c2 c3 c4 c5 i.year [aw=tot], absorb(id) cluster(id)
- Multiproduct Firms and Product Turnover in the Developing World: Evidence from India
Review of Economics and Statistics 2010 · pkg 12813
xi: areg n_yr f_ltf i.year if y97==1, a(fid) cluster(nic4)
- The Effectiveness of R&D Tax Credits
Review of Economics and Statistics 2017 · pkg 13342
xtreg lrdfind l.lrdfind l.livadollars l.lf_b i.t if fdsample, fe vce(cluster i)
- Quantifying the Benefits of Social Insurance: Unemployment Insurance and Health
Review of Economics and Statistics 2020 · pkg 13473
xi: xtreg `y' sim_spell* dumspell* `controls' [pw=p5wgt_m0], fe vce(cluster statefip_m0)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):xi: xtreg `y' sim_spell* dumspell* i.age female i.race i.edgr married i.imonth urate uratesq uratecu avweek* i.kids_mloss i.year_mloss i.statefip_mloss i.statef …
- Union Reform, Performance Pay, and New Teacher Supply: Evidence from Wisconsin's Act 10
AEA Papers and Proceedings 2021 · pkg 11130
-
firm1% · 28
4 examples in the code
- Endogenous Liquidity and Capital Reallocation
Journal of Political Economy 2025 · pkg 7751
qui:xtreg aqcdummy l.cheat l.ebitat l.logat_cpi_final l.lratio_c l.lratio_l l.capxat l.relative_size if l.at>=0 &aqc>=0 & l.lratio>=0, fe vce(robust)
- The employment consequences of private equity acquisitions: The case of institutional buy
European Economic Review 2014 · pkg 11864
xtreg lemployees l.lemployees lremuneration_over_employees l.lremuneration_over_employees lturnover_over_employees l.lturnover_over_employees post_acquisition a …
- Learning versus sunk costs explanations of export persistence
European Economic Review 2015 · pkg 12009
areg lnexp expage2-expage8 lnz_1 lnage_1 lnwl_1 lni_1 corp loccm locother newid2-newid72, absorb(plant)
- Contracting between Firms: Empirical Evidence
Review of Economics and Statistics 2018 · pkg 12991
eststo: xtreg moral_hazard_clauses second_contract third_or_more_contract critical_product_supplier good domestic_firm privately_held_firm log_spending_volume d …
- Endogenous Liquidity and Capital Reallocation
Journal of Political Economy 2025 · pkg 7751
-
state / province1% · 28
4 examples in the code
- Answering the Call of Automation: How the Labor Market Adjusted to Mechanizing Telephone O
Quarterly Journal of Economics 2024 · pkg 7501
eststo: qui reghdfe any_cutover ln_pop_all if year==1910, `options'
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo: qui reghdfe any_cutover ln_pop_all if year==1910, keepsingletons absorb(statefip) vce(robust)
- Policy Uncertainty in the Market for Coal Electricity: The Case of Air Toxics Standards
Journal of Political Economy 2025 · pkg 7856
reghdfe annual_profit statecoalshare statecoalshare_sqr gas_coal_price_ratio
- Intergenerational Mobility in India: New Measures and Estimates across Time and Social Gro
American Economic Journal: Applied Economics 2024 · pkg 11488
eststo: reghdfe son_ed_rank muslim sc st urban bc [aw=wt] if inlist(bc, 1980, 1985) & father_ed <= 2, absorb(stateid)
- Measuring the Market for Legal Firearms
AEA Papers and Proceedings 2024 · pkg 11558
qui reg `v', absorb(state)
- Answering the Call of Automation: How the Labor Market Adjusted to Mechanizing Telephone O
Quarterly Journal of Economics 2024 · pkg 7501
-
person1% · 27
4 examples in the code
- What do Consumers Consider Before They Choose? Identification from Asymmetric Demand Respo
Quarterly Journal of Economics 2021 · pkg 7453
areg switch def_* diffmin_* yeardum*, absorb(bene_id) cluster(cont_plan_seg) robust;
- German Long-Term Health Insurance: Theory Meets Evidence
Journal of Political Economy 2025 · pkg 7804
areg lwage age age_2 age_b1 age_b1_sq age_b2 age_b2_sq if maxEd==10 & age>=25, abs(pid)
- Wealth and health behavior: Testing the concept of a health cost
European Economic Review 2014 · pkg 11971
xtreg logwealth inheritance age age2 sex drace* l.dcenreg1 l.dcenreg2 l.dcenreg3 l.dcenreg4 l.hhres l.child raedyrs l.loginc l.dsah* l.dmstat1 l.dmstat2 l.dmsta …
- The Effects of Coworker Heterogeneity on Firm-Level Output: Assessing the Impacts of Cultu
Review of Economics and Statistics 2013 · pkg 12832
xtreg points_pg rel_euro_shr hhi new_nhl, robust fe;
- What do Consumers Consider Before They Choose? Identification from Asymmetric Demand Respo
Quarterly Journal of Economics 2021 · pkg 7453
-
county / city / district1% · 26
4 examples in the code
- The Economic Impacts of COVID-19: Evidence from a New Public Database Built Using Private
Quarterly Journal of Economics 2024 · pkg 7415
reg norm_spend_13_15_100 med_2br_rent_work_zcta /// if q_inc == 1 /// [w = pop_2018], vce(cluster county_fips) /// absorb(county_fips) - Interpreting Trends in Intergenerational Mobility
Journal of Political Economy 2024 · pkg 7768
areg ${y_var} i.foddar#c.${x_var} i.kommun60_#c.${x_var} ${x_var} experiment c.experiment#c.${x_var} i.foddar, absorb(kommun60_) vce(cluster kommun60_)As we read it — macros filled in / loop expanded (an interpretation, not the file's text):areg l_lifeinc3035 i.foddar#c.f_l_lifeinc5359 i.kommun60_#c.f_l_lifeinc5359 f_l_lifeinc5359 experiment c.experiment#c.f_l_lifeinc5359 i.foddar, absorb(kommun60_ …
- Homefront: Black Veterans and Black Voters in the Civil Rights Era
AEA Papers and Proceedings 2021 · pkg 11111
areg `r' i.reg_year##c.(`v') ,absorb(fips)
- Migration and co-residence choices: Evidence from Mexico
Journal of Development Economics 2020 · pkg 12442
qui areg HHnewmember_allperiod ${m`i'} ${control} i.id_panelgroup if `samplee'==1 , absorb(id_mun) vce(cluster id_h)As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui areg HHnewmember_allperiod ${m`i'} nbq1_male_5*(`x'-1)_5*`x'-1 nbq1_fem_5*(`x'-1)_5*`x'-1 i.hhmaxedu_q1 i.id_panelgroup if `samplee'==1 , absorb(id_mun) vce …
- The Economic Impacts of COVID-19: Evidence from a New Public Database Built Using Private
Quarterly Journal of Economics 2024 · pkg 7415
Share of the 1889 packages that absorb fixed effects, each at the set most of its estimations use. Greyed: fewer than 10 packages.
Any estimation absorbs…
-
author-named unitnames the reader has no word for, commonest first:
s,agebin,cty,dist,dyad,grade,mid,cc66% · 13124 examples in the code
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
xi: reghdfe die pre_3 pre_2 current post_1 post_2 post_3 pre_1 $CONTROL_VAR if noretirescheme == 1 & urban_area == 0, a(gbcode lost) cluster(gbcode)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):xi: reghdfe die pre_3 pre_2 current post_1 post_2 post_3 pre_1 men i.educ age age2 i.year if noretirescheme == 1 & urban_area == 0, a(gbcode lost) cluster(gbcod …
- Gambling, Saving, and Lumpy Liquidity Needs
American Economic Journal: Applied Economics 2021 · pkg 3475
reghdfe btm ct ct0 ih_inc betprop lmeaninc if srvrd>2, a(srvrd week ntx) vce(cluster id)
- Identifying Prediction Mistakes in Observational Data
Quarterly Journal of Economics 2024 · pkg 7352
release_model = fixest::feols(definitelyReleasedFlag ~ WXZ_cells | court_by_time_cells, data = data, warn = FALSE, notes = FALSE) - Consequences of the Clean Water Act and the Demand for Water Quality
Quarterly Journal of Economics 2019 · pkg 7355
reghdfe `resultvalue' downstreamXtau_* [aw=Nobs], /// absorb(id_facilityXdownstream id_facilityXyear downstreamXid_basinXyear) /// vce(cluster id_waters …
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
-
time47% · 936
4 examples in the code
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
areg hav_pension treat $CONTROL_VAR if rural & age > `a' & age <= `b', a(countyID) cluster(cntygb)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):areg hav_pension treat men i.educ age age2 i.year if rural & age > `a' & age <= `a' + 1, a(countyID) cluster(cntygb)
- Where Is Pollution Moving? Environmental Markets and Environmental Justice
AEA Papers and Proceedings 2021 · pkg 3474
areg y x i.pollutantID i.year [aw=weight], absorb(district) robust
- Gambling, Saving, and Lumpy Liquidity Needs
American Economic Journal: Applied Economics 2021 · pkg 3475
reghdfe btm ct ct0 ih_inc betprop lmeaninc if srvrd>2, a(srvrd week ntx) vce(cluster id)
- Consequences of the Clean Water Act and the Demand for Water Quality
Quarterly Journal of Economics 2019 · pkg 7355
xi: areg seweragecapoutlay_cumul foia_dollars_cumul i.year /// , absorb(id_city) cluster(id_city)
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
-
unspecified id (id, i, group...)16% · 324
4 examples in the code
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
reghdfe lngdp_per [aw = pop] , a(code year) res(res_lngdp_per)
- Gambling, Saving, and Lumpy Liquidity Needs
American Economic Journal: Applied Economics 2021 · pkg 3475
reghdfe btm ct ct0 ih_inc betprop if srvrd>2, a(id srvrd week ntx) vce(cluster id)
- From Public Labs to Private Firms: Magnitude And Channels of Local R&D Spillovers
Quarterly Journal of Economics 2025 · pkg 7361
reghdfe ln_eng_sbrut E_post11 if NAF_labex_accept == 1 & ZE_labex_accept == 1 , a(ZE2010#year gp) cl(mlabexid)
- The Growing Importance Of Social Skills In The Labor Market
Quarterly Journal of Economics 2017 · pkg 7424
xi: xtreg ln_wage routine afqt_routine socnlsy_routine afqt_socnlsy_routine /// `covs' [w=weight] if complete79==1 & age>=23 & sample==0, fe vce(cluster uni …As we read it — macros filled in / loop expanded (an interpretation, not the file's text):xi: xtreg ln_wage routine afqt_routine socnlsy_routine afqt_socnlsy_routine i.age i.year i.div i.metro i.urban [w=weight] if complete79==1 & age>=23 & sample==0 …
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
-
county / city / district9% · 180
4 examples in the code
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
areg hav_pension treat $CONTROL_VAR if rural & age > `a' & age <= `b', a(countyID) cluster(cntygb)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):areg hav_pension treat men i.educ age age2 i.year if rural & age > `a' & age <= `a' + 1, a(countyID) cluster(cntygb)
- Where Is Pollution Moving? Environmental Markets and Environmental Justice
AEA Papers and Proceedings 2021 · pkg 3474
areg y x i.pollutantID i.year [aw=weight], absorb(district) robust
- Consequences of the Clean Water Act and the Demand for Water Quality
Quarterly Journal of Economics 2019 · pkg 7355
xi: areg seweragecapoutlay_cumul foia_dollars_cumul i.year /// , absorb(id_city) cluster(id_city) - The Deposits Channel of Monetary Policy
Quarterly Journal of Economics 2017 · pkg 7368
reghdfe log_tot_amt d1_ffm_herfdepcty d1_ffm_avgherfdepcty herfdepcty avgherfdepcty, absorb(fipsbank bankid year fipszero fips) cluster(bankid fips) tolerance( …
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
-
author-named unit × timenames the reader has no word for, commonest first:
s,agebin,cty,dist,dyad,grade,mid,cc9% · 1704 examples in the code
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
reghdfe lndrate post [aw = aw] if local_year <= 5 & age >= ageofeligibility, a( i.cty_gender_age##c.(yr yr2) ) cluster(cty_gender_age)
- From Public Labs to Private Firms: Magnitude And Channels of Local R&D Spillovers
Quarterly Journal of Economics 2025 · pkg 7361
reghdfe ln_eng_sbrut E_post11 if NAF_labex_accept == 1 & ZE_labex_accept == 1 , a(ZE2010#year gp) cl(mlabexid)
- Who’s Afraid of the Minimum Wage? Measuring the Impacts on Independent Businesses Using Ma
Quarterly Journal of Economics 2026 · pkg 7371
eststo ln_wages_r`r': quietly reghdfe ln_wages `events' `rwgt' if `rsamp', absorb(firm_tin i.eventyr##i.year `r`r'') vce(cluster double_cluster2)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo ln_wages_r`r': quietly reghdfe ln_wages tm4 tm3 tm2 tm0 tp1 tp2 tp3 tp4 mwind [pw=lnwages_base] if balanced2==1 & year>2009, absorb(firm_tin i.eventyr##i …
- Inflammatory Political Campaigns and Racial Bias in Policing
Quarterly Journal of Economics 2023 · pkg 7399
reghdfe prob_stop_race 1.TRUMP_PRE_* 1.TRUMP_0 1.TRUMP_POST_* 1.TRUMP_PRE_*#1.black 1.TRUMP_0#1.black 1.TRUMP_POST_*#1.black 1.TRUMP_PRE_*#1.asian 1.TRUMP_0#1. …
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
-
country7% · 147
4 examples in the code
- Banking Crises Without Panics
Quarterly Journal of Economics 2021 · pkg 7386
qui reghdfe Fd3`LHS' $RHS `X1' , absorb(ccode year) cluster(ccode year)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui reghdfe Fd3`LHS' B1_R_B B2_R_B B3_R_B B4_R_B B6_R_B B7_R_B B8_R_B B1_R_N B2_R_N B3_R_N B4_R_N B6_R_N B7_R_N B8_R_N L?B?_R_B L?B?_R_N L0g0y L1g0y L2g0y L3g0y …
- Permanent Capital Losses after Banking Crises
Quarterly Journal of Economics 2026 · pkg 7416
reghdfe Fd3`LHS' R_B R_B_P `X1' , absorb(ccode) cluster(ccode year)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe Fd3`LHS' R_B R_B_P L(1/3).R_B L(1/3).R_B_P L(1/3).g0y L(1/3).g0d_y , absorb(ccode) cluster(ccode year)
- Growth Experiences and Trust in Government
Quarterly Journal of Economics 2026 · pkg 7441
qui reghdfe trust_govt wgrowth_rate_1 yob_ln_gdppc if sample==1 & survey_year!=`x', absorb(ccode subregion_yob svy_survey_year age $basic) cluster(ccode) level( …
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui reghdfe trust_govt wgrowth_rate_1 yob_ln_gdppc if sample==1 & survey_year!=`x', absorb(ccode subregion_yob svy_survey_year age sex marital religion edu) clu …
- The Mission: Human Capital Transmission, Economic Persistence, and Culture in South Americ
Quarterly Journal of Economics 2019 · pkg 7444
qui: xtreg popd mission temp_avg rainfall alti landlocked altisq tempsq rainsq , r fe
- Banking Crises Without Panics
Quarterly Journal of Economics 2021 · pkg 7386
-
firm7% · 145
4 examples in the code
- Who’s Afraid of the Minimum Wage? Measuring the Impacts on Independent Businesses Using Ma
Quarterly Journal of Economics 2026 · pkg 7371
eststo ln_wages_r`r': quietly reghdfe ln_wages `events' `rwgt' if `rsamp', absorb(firm_tin i.eventyr##i.year `r`r'') vce(cluster double_cluster2)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo ln_wages_r`r': quietly reghdfe ln_wages tm4 tm3 tm2 tm0 tp1 tp2 tp3 tp4 mwind [pw=lnwages_base] if balanced2==1 & year>2009, absorb(firm_tin i.eventyr##i …
- How Americans Respond to Idiosyncratic and Exogenous Changes in Household Wealth and Unear
Quarterly Journal of Economics 2024 · pkg 7451
felm( as.formula("winner ~ has_w2_wages + female + primary_earner + older_member + same_age + db_w2_wages + age | tin + tax_yr | 0 | tin"), # nolint da … - Capitalists in the Twenty-First Century
Quarterly Journal of Economics 2019 · pkg 7496
reghdfe `var' Dn5p-Dn2 D0-D5p, abs(ein year) cluster(ein)
- Does Taxing Business Owners Affect Employees? Evidence From A Change in the Top Marginal T
Quarterly Journal of Economics 2024 · pkg 7505
eststo r`r': quietly reghdfe `rlog'`o' `events' [aw=n_ft_lower_2012] if (`t'==1 | `t'==0), absorb(`r`r'' firm_tin) vce(cluster firm_tin)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo r`r': quietly reghdfe ln`o' t2008-t2010 t2012+1-t2016 y2008-y2010 y2012+1-y2016 tt1112 [aw=n_ft_lower_2012] if (tt1112==1 | tt1112==0), absorb(`r`r'' fir …
- Who’s Afraid of the Minimum Wage? Measuring the Impacts on Independent Businesses Using Ma
Quarterly Journal of Economics 2026 · pkg 7371
-
state / province7% · 145
4 examples in the code
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
reghdfe attrition i.nrpp_yr $CONTROL_VAR if rural , a(provid year) cluster(cntygb)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe attrition i.nrpp_yr men i.educ age age2 i.year if rural , a(provid year) cluster(cntygb)
- Who’s Afraid of the Minimum Wage? Measuring the Impacts on Independent Businesses Using Ma
Quarterly Journal of Economics 2026 · pkg 7371
eststo `oo': quietly areg `to'`oo' `events' i.eventyr##i.year `r`r'' [pw=wrevenue_base], absorb(state) vce(cluster double_cluster2)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo `oo': quietly areg revw_`oo' tm4 tm3 tm2 tm0 tp1 tp2 tp3 tp4 i.year treat i.eventyr##i.year `r`r'' [pw=wrevenue_base], absorb(state) vce(cluster double_c …
- Medicaid and Mortality: New Evidence From Linked Survey and Administrative Data
Quarterly Journal of Economics 2021 · pkg 7405
cap noi reghdfe diedpanel posttreated sameyear [pweight=pwgt] if target1==1 & age2014 > 54, absorb(st dyear year) cluster(st)
- Growth Experiences and Trust in Government
Quarterly Journal of Economics 2026 · pkg 7441
qui reghdfe trust_fed_govt wgrowth_rate_1 yob_ln_gdppc if survey_year!=`x', absorb(state_code $time $basic $extra $polit) cluster(yob) level(95)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui reghdfe trust_fed_govt wgrowth_rate_1 yob_ln_gdppc if survey_year!=`x', absorb(state_code survey_year age generation sex marital religion edu ethnicity birt …
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
-
unexpanded macro5% · 107
4 examples in the code
- Gambling, Saving, and Lumpy Liquidity Needs
American Economic Journal: Applied Economics 2021 · pkg 3475
reghdfe `oc'_c5 wn wnxlsa hdem*, absorb(`fesxlsa' `het_bp') vce(cluster id) // bet np profile heterogeneity
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):reghdfe `oc'_c5 wn wnxlsa hdem*, absorb(id lsaxweek lsaxsrvrd `het_bp') vce(cluster id)
- Who’s Afraid of the Minimum Wage? Measuring the Impacts on Independent Businesses Using Ma
Quarterly Journal of Economics 2026 · pkg 7371
eststo `oo'_r`r': quietly reghdfe `to'_`oo' `events' `rwgt' if `rsamp', absorb(i.yearcoh i.indivcoh `r`r'') vce(cluster double_cluster2)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):eststo `oo'_r`r': quietly reghdfe `to'_`oo' tm4 tm3 tm2 tm0 tp1 tp2 tp3 tp4 mwind [pw=lnrevenue_base] if balanced2==1 & year>2009, absorb(i.yearcoh i.indivcoh ` …
- The Quality and Efficiency of Public and Private Firms: Evidence from Ambulance Services
Quarterly Journal of Economics 2022 · pkg 7381
qui reghdfe d1 private if amb==1 & extra==0 , absorb(fe`z' year month priout) vce(cluster fe`z')
- The Impact of Public School Choice: Evidence from Los Angeles’s Zones of Choice
Quarterly Journal of Economics 2024 · pkg 7446
reghdfe z_ela_all b5-a6 hispanic black sped migrant college poverty female spanish_at_home , absorb(`groupfe' endyear ) vce(cluster `groupfe' )
- Gambling, Saving, and Lumpy Liquidity Needs
American Economic Journal: Applied Economics 2021 · pkg 3475
-
person5% · 102
4 examples in the code
- Sexual Harassment and Gender Inequality in the Labor Market
Quarterly Journal of Economics 2022 · pkg 7420
reghdfe ln_wage age agesq- ed7_agesq if full_s`num'==1, abs(firm_fe_`num'=cfarnr_lopnr tenure totexp ssyk3 year lopnr )
- Growth Experiences and Trust in Government
Quarterly Journal of Economics 2026 · pkg 7441
qui reghdfe trust_fed_govt_med wgrowth_rate_1 if survey_year!=`x' & sample==1, absorb(canton $basic $design $econ $polit idpers) cluster(idhous yob)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):qui reghdfe trust_fed_govt_med wgrowth_rate_1 if survey_year!=`x' & sample==1, absorb(canton marital edu survey_year age language employment_status occupation i …
- What do Consumers Consider Before They Choose? Identification from Asymmetric Demand Respo
Quarterly Journal of Economics 2021 · pkg 7453
areg switch def_* diffmin_* yeardum*, absorb(bene_id) cluster(cont_plan_seg) robust;
- Discrimination in Multiphase Systems: Evidence from Child Protection
Quarterly Journal of Economics 2024 · pkg 7491
reghdfe `var' i.worker_id i.worker_id#i.pre_black, /// absorb(rotationgroup) resid
- Sexual Harassment and Gender Inequality in the Labor Market
Quarterly Journal of Economics 2022 · pkg 7420
Share of 1973 packages with a model that shows the design. Greyed: fewer than 10 packages.
Estimator commands
-
reghdfe50% · 988
3 examples in the code
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
reghdfe lngdp_per [aw = pop] , a(code year) res(res_lngdp_per)
- Gambling, Saving, and Lumpy Liquidity Needs
American Economic Journal: Applied Economics 2021 · pkg 3475
reghdfe btm ct ct0 ih_inc betprop lmeaninc if srvrd>2, a(srvrd week ntx) vce(cluster id)
- Consequences of the Clean Water Act and the Demand for Water Quality
Quarterly Journal of Economics 2019 · pkg 7355
reghdfe `resultvalue' downstreamXtau_* [aw=Nobs], /// absorb(id_facilityXdownstream id_facilityXyear downstreamXid_basinXyear) /// vce(cluster id_waters …
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
-
areg35% · 685
3 examples in the code
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
areg hav_pension treat $CONTROL_VAR if rural & age > `a' & age <= `b', a(countyID) cluster(cntygb)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):areg hav_pension treat men i.educ age age2 i.year if rural & age > `a' & age <= `a' + 1, a(countyID) cluster(cntygb)
- Where Is Pollution Moving? Environmental Markets and Environmental Justice
AEA Papers and Proceedings 2021 · pkg 3474
areg y x i.pollutantID i.year [aw=weight], absorb(district) robust
- Consequences of the Clean Water Act and the Demand for Water Quality
Quarterly Journal of Economics 2019 · pkg 7355
xi: areg seweragecapoutlay_cumul foia_dollars_cumul i.year /// , absorb(id_city) cluster(id_city)
- The Power of Social Pensions: Evidence from China's New Rural Pension Scheme
American Economic Journal: Applied Economics 2021 · pkg 3473
-
xtreg25% · 503
3 examples in the code
- From Public Labs to Private Firms: Magnitude And Channels of Local R&D Spillovers
Quarterly Journal of Economics 2025 · pkg 7361
xtreg D.ln_eng_sbrut if year <= 2010, fe
- The Growing Importance Of Social Skills In The Labor Market
Quarterly Journal of Economics 2017 · pkg 7424
xi: xtreg ln_wage routine afqt_routine socnlsy_routine afqt_socnlsy_routine /// `covs' [w=weight] if complete79==1 & age>=23 & sample==0, fe vce(cluster uni …As we read it — macros filled in / loop expanded (an interpretation, not the file's text):xi: xtreg ln_wage routine afqt_routine socnlsy_routine afqt_socnlsy_routine i.age i.year i.div i.metro i.urban [w=weight] if complete79==1 & age>=23 & sample==0 …
- Cooperation in the Finitely Repeated Prisoner’s Dilemma
Quarterly Journal of Economics 2018 · pkg 7426
xtreg coop g l length treat_match2-treat_match10 ocoop_r1_m1 coop_first, i(id) cluster(paper)
- From Public Labs to Private Firms: Magnitude And Channels of Local R&D Spillovers
Quarterly Journal of Economics 2025 · pkg 7361
-
feols3% · 66
3 examples in the code
- Identifying Prediction Mistakes in Observational Data
Quarterly Journal of Economics 2024 · pkg 7352
release_model = fixest::feols(definitelyReleasedFlag ~ WXZ_cells | court_by_time_cells, data = data, warn = FALSE, notes = FALSE) - Growth Experiences and Trust in Government
Quarterly Journal of Economics 2026 · pkg 7441
twfe.est <- feols(trust_govt_wo ~ i(Time_to_Treatment, treat, ref = -1) | ccode + year, data = data_cohort, cluster = "ccode") - Rising Markups and the Role of Consumer Preferences
Journal of Political Economy 2025 · pkg 7745
eval(parse(text = paste0("hausman.first = fixest::feols(prices ~ iv_hm | ", set.fe, ", data = movements)")))
- Identifying Prediction Mistakes in Observational Data
Quarterly Journal of Economics 2024 · pkg 7352
-
felm3% · 60
3 examples in the code
- Identifying Prediction Mistakes in Observational Data
Quarterly Journal of Economics 2024 · pkg 7352
released_fe <- felm(definitelyReleasedFlag ~ 1 | court_by_time_cells, data = BEU_data)
- Building Resilient Health Systems: Experimental Evidence from Sierra Leone and The 2014 Eb
Quarterly Journal of Economics 2021 · pkg 7365
m_y <- felm(total ~ bl_percqual_orig | triplet_id + week, data = dt, keepCX = TRUE)
- How Americans Respond to Idiosyncratic and Exogenous Changes in Household Wealth and Unear
Quarterly Journal of Economics 2024 · pkg 7451
felm( as.formula("winner ~ has_w2_wages + female + primary_earner + older_member + same_age + db_w2_wages + age | tin + tax_yr | 0 | tin"), # nolint da …
- Identifying Prediction Mistakes in Observational Data
Quarterly Journal of Economics 2024 · pkg 7352
-
reg2% · 42
3 examples in the code
- Implicit Stereotypes: Evidence From Teachers’ Gender Bias
Quarterly Journal of Economics 2019 · pkg 7410
reg d_score_gender olympics olympics_miss if mate==`i', robust cluster(school_id) absorb(school_id)
- The Economic Impacts of COVID-19: Evidence from a New Public Database Built Using Private
Quarterly Journal of Economics 2024 · pkg 7415
reg wins_revenue_ med_2br_2018 [w = pop_2018], absorb(sector)
- Sequential Bargaining in the Field: Evidence from Millions of Online Bargaining Interactio
Quarterly Journal of Economics 2020 · pkg 7459
eststo photo_new_leaf: reg rrat log_photo_count if used==0, absorb(anon_leaf_categ_id)robust
- Implicit Stereotypes: Evidence From Teachers’ Gender Bias
Quarterly Journal of Economics 2019 · pkg 7410
-
xtscc2% · 33
3 examples in the code
- Permanent Capital Losses after Banking Crises
Quarterly Journal of Economics 2026 · pkg 7416
xtscc L_Fd`i'`X' Failure_BEdecline, fe lag(16)
- The Macroeconomic Impact of Climate Change: Global Versus Local Temperature
Quarterly Journal of Economics 2026 · pkg 7548
`verb' xtscc l`iname'`var' L(0/`ps').`shock' L(1/`p').`var' `cntrls', fe lag(4)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):xtscc l`i'`var' L(0/4).gtmp_noaa_aw_dtfe2s L(1/4).`var' L(0/4).( dummyrecession ) L(1/4).(dlnrgdppc_world_bud dlnpcom treasury10y) c.lintrend#i.subregion_en, fe …
- A Quantity-Driven Theory of Term Premia and Exchange Rates
Quarterly Journal of Economics 2023 · pkg 7607
xtscc s3_fx s3_for_dom_sveny1 if year>=2001 & year<=2021, fe lag(`S3')
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):xtscc s3_fx s3_for_dom_sveny1 if year>=2001 & year<=2021, fe lag(ceil(0.7846*(((2*(2/3)*0.9)/(1-(2/3)*0.9^2))^0.5)*(252^0.5)))
- Permanent Capital Losses after Banking Crises
Quarterly Journal of Economics 2026 · pkg 7416
-
plm1% · 28
3 examples in the code
- Tax evasion in new disguise? Examining tax havens' international bank deposits
Journal of Public Economics 2019 · pkg 12142
outbound <- plm(log(lbs.l.all.nonbanks)~ treaty.signed+ as.factor(time), data=Data[country%in%taxhavenslarge & … - Challenging Encounters and Within-Physician Practice Variability
Review of Economics and Statistics 2025 · pkg 14024
Reg1 <-plm(formula = paste(outcome, "~TBI_Pre_6+TBI_Pre_5+TBI_Pre_4+TBI_Pre_3+TBI_Pre_2+TBI_1+TBI_2+TBI_3+TBI_4+TBI_5+TBI_6+TBI_7+TBI … - Dynamic Competition and Arbitrage in Electricity Markets: The Role of Financial Players
American Economic Journal: Microeconomics 2022 · pkg 16799
pregRE <- plm(slope_of ~ elast_spl + expRT +QCreg + as.character(m)+ as.character(h), pdata, model = "within")
- Tax evasion in new disguise? Examining tax havens' international bank deposits
Journal of Public Economics 2019 · pkg 12142
-
xtivreg21% · 13
3 examples in the code
- Firm Organization with Multiple Establishments
Quarterly Journal of Economics 2022 · pkg 7605
eststo within1, title("within1"): qui xtivreg2 ln_empl_kreis ldistall ln_MP rel_wage if hq_kreis != ao_kreis, fe cluster(untid ao_kreis) - Accountability and Incentives of Appointed and Elected Public Officials
Review of Economics and Statistics 2018 · pkg 13557
xtivreg2 log_Invzuweis_pc direct_elect time*, fe r cluster(code)
- Residential Building Codes Do Save Energy: Evidence from Hourly Smart-Meter Data
Review of Economics and Statistics 2022 · pkg 13574
xi: xtivreg2 kwh_daily temp_avg_1 temp_avg_2 temp_avg_3 temp_avg_4 i.period*temp_avg_1 i.period*temp_avg_2 i.period*temp_avg_3 i.period*temp_avg_4 i.bedrooms_nu …
- Firm Organization with Multiple Establishments
Quarterly Journal of Economics 2022 · pkg 7605
-
feglm0% · 9
3 examples in the code
- Governments’ home bias and efficiency losses: Evidence from national and subnational gover
Journal of International Economics 2026 · pkg 14433
feglm( s_odg ~ nonlocal:SUBNAT + nonlocal + SUBNAT|buyer_reg_gov_type +g_j +or_dest_id, cluster=firm_gov_reg_3digit$buyer_reg_gov_type,data=firm_gov_reg_3dig …
- You can’t sit with us: How locals and tourists compete for amenities in Paris
Journal of Urban Economics 2025 · pkg 17664
reg3_pandemic <- feglm(numrev_paris_monthly ~ post_nfrench_19 | url + yem, data = dt_pandemic, family = poisson(), … - Polarisation and Public Policy: Political Adverse Selection under Obamacare
The Economic Journal 2025 · pkg 19067
model_logit <- feglm( as.formula(str_interp( 'marketplace ~ healthy + republican + interaction + ${age} + ${demo} + ${income} | rating_year' )), data …
- Governments’ home bias and efficiency losses: Evidence from national and subnational gover
Journal of International Economics 2026 · pkg 14433
Share of 1973 packages with a model that shows the design (a package runs several). Greyed: fewer than 10 packages.
Validation checks
-
Oster (2019) selection bounds (psacalc)1% · 25
4 examples in the code
- The Quality and Efficiency of Public and Private Firms: Evidence from Ambulance Services
Quarterly Journal of Economics 2022 · pkg 7381
psacalc delta q_private, beta(0) rmax(0.247)
- Regressive Sin Taxes, with an Application to the Optimal Soda Tax
Quarterly Journal of Economics 2019 · pkg 7396
psacalc beta Knowledge, mcontrol(SelfControl $PVControls lnIncome lnEduc) rmax(`Rmax')
- Scooped! Estimating Rewards for Priority in Science
Journal of Political Economy 2025 · pkg 7682
cap psacalc beta scooped // beta star
- Soil Heterogeneity, Social Learning, and the Formation of Close-Knit Communities
Journal of Political Economy 2025 · pkg 7820
o_delta(y = dep.var.name, x = "SHI25", con = paste0("+ factor(", FEs, ")"), beta = 0, R2max = min(1, 1.3*summary(m6)$r2), …
- The Quality and Efficiency of Public and Private Firms: Evidence from Ambulance Services
Quarterly Journal of Economics 2022 · pkg 7381
-
multiple-testing correction (FDR, Romano-Wolf, ...)4% · 71
4 examples in the code
- Building Resilient Health Systems: Experimental Evidence from Sierra Leone and The 2014 Eb
Quarterly Journal of Economics 2021 · pkg 7365
if `index' noisily dis "`index' is FDR adjusted."
- (Not) Thinking About the Future: Financial Information and Maternal Labor Supply
Quarterly Journal of Economics 2026 · pkg 7587
include "${code}/_multhyp2.do" // sharpened q-values - Firm Organization with Multiple Establishments
Quarterly Journal of Economics 2022 · pkg 7605
rwolf ln_prdt_bet_beta avg_lnw_bot_bet_beta count_mgmt_bet_beta shr_bloss_w_bet_beta, /// nobootstraps stdests(ln_prdt_bet_se avg_lnw_bot_bet_se count_mgmt_ … - The Labor Market Effects of Legal Restrictions on Worker Mobility
Journal of Political Economy 2025 · pkg 7708
test whitemale_std_score=1.whitefemale#c.std_score=1.blackfemale#c.std_score=1.otherfemale#c.std_score=1.blackmale#c.std_score=1.othermale#c.std_score, mtest(bo …
- Building Resilient Health Systems: Experimental Evidence from Sierra Leone and The 2014 Eb
Quarterly Journal of Economics 2021 · pkg 7365
Share of 1976 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.