← Methods The panel fixed effects recipe →

Panel fixed effects

2,634
packages in the design · 2,619 papers
2,628
of them have a model that shows the design itself — the models read below
3,930
run a fixed-effects estimator in any design (including packages in another design)
How the design is counted — the same count on the recipe, outcomes and methods pages
  • The universe is every replication package our extractors have read (code_model_design) that is linked to a live paper by a confirmed link; the field is the linked paper's.
  • A package is in a design when (a) our extractor found the design's identification pattern on a line of code it runs (not a path, a folder macro, an export or an install line), or (b) it runs a model of the design's own estimator family. An ivreg2 / ivreghdfe call with no (endog = z) group counts for neither: it is OLS with robust or HAC errors, not IV.
  • Panel fixed effects is the rest: a fixed-effects estimation and none of the other designs. A package can be in several designs (not panel FE).
  • A model is an estimation OF the design only when the model itself carries the design's signature; the recipe's estimation choices, the outcomes, the instruments and every example are read from those models.
  • This design's signature in a model: a fixed-effects estimation (absorbed effects, xtreg fe, areg, feols | fe).
  • 0 packages declare the design in code; 2634 are in it by their estimator (a package can be both).

Adoption over time — the dedicated estimator

2009: 1 of 12 packages (8.3%) 2010: 11 of 34 packages (32.4%) 2010 2011: 19 of 77 packages (24.7%) 2012: 15 of 63 packages (23.8%) 2013: 26 of 107 packages (24.3%) 2014: 29 of 107 packages (27.1%) 2015: 43 of 156 packages (27.6%) 2015 2016: 26 of 105 packages (24.8%) 2017: 28 of 121 packages (23.1%) 2018: 46 of 151 packages (30.5%) 2019: 95 of 253 packages (37.5%) 2020: 92 of 246 packages (37.4%) 2020 2021: 193 of 392 packages (49.2%) 2022: 388 of 775 packages (50.1%) 2023: 501 of 909 packages (55.1%) 2024: 651 of 1,136 packages (57.3%) 2025: 820 of 1,322 packages (62.0%) 2025 2026: 944 of 1,459 packages (64.7%)

Share of each publication year's packages with parsed models that run this estimator at least once (hover for counts). Grey years have fewer than 10 packages and are not a trend; package coverage is thin before ~2010, when journal data policies began.

Validation practice

Of the 2,634 packages in the design, how many run each standard check (read from the code; the same checks and numbers as the recipe). A check run under a macro or in a file we could not read is missed, so these are lower bounds. Greyed: fewer than 10 packages.

Oster (2019) selection bounds (psacalc)
1% · 27
multiple-testing correction (FDR, Romano-Wolf, ...)
3% · 82

What it is used to study

The dependent variables of this design's estimations, read from the model roles we read from the code. Of the 2,634 packages in the design, 2,628 have a model that shows the design itself, and 2,544 of those have a readable outcome (110,970 models; for 845 packages some outcome is read only through a loop's expansion). Shares are of those 2,544 packages, one count per package; greyed rows rest on fewer than 10. An outcome that is a taxonomy measure's variable in the same package is shown as the measure; other names are grouped by what they name. Compare every design →

How this is counted
  • The unit is the package: a package counts once for an outcome, measure or instrument type however many of its models carry it; the model count is shown second.
  • A design's packages are the ONE design membership every page shows (identification fact on a line of code, or the design's own estimator). Its models are the ones that carry the design's signature in the model itself — a DiD estimator or a treatment × post term, event-time dummies or an abnormal-return outcome, an excluded instrument, an RD estimator or a bandwidth around a cutoff, a matching estimator or matched weights. A package with none of those models is counted in the design but has no outcome here.
  • Roles are read from each model's literal row. Only where a literal role still holds a macro (`y', $dep) are the loop-expanded rows written on the same line read for that role; an expanded row whose literal row is resolved adds nothing, and an unresolved role with no expansion is dropped.
  • An outcome is a taxonomy measure when the dependent variable is that measure's variable in the same package; otherwise it is grouped by its name (a word list, field-aware for short names like car, q, ret); otherwise it is shown as the bare variable.
  • Instruments are the EXCLUDED ones: a term also among the model's regressors is an included control. Types are read from the name (and L. / lag for lagged values). Where the name says nothing (`z`, `shock`, `iv1`), the instrument is traced to the statement in the package that builds it, up to three statements back, and typed by that statement's shape — (total − own)/(n − 1) a leave-out mean, L.x or x[_n-1] a lag, predict after a model a predicted value, a by-group sum of share × shock a shift-share, geodist a distance — or by the name of the one variable it copies or transforms. Products, thresholds and aggregates of other variables are not read, and an instrument nothing reliable types stays untyped. Each such example shows the statement, linked to its line.

Finance — 542 of 556 packages have a readable outcome

Economics — 1902 of 1,976 packages have a readable outcome

Outcomes that are taxonomy measures (all fields: the package computes the measure and estimates it as the outcome)

Commonest outcome names no group reads (all fields, packages): score (11), rate (9), growth (8), lp (8), share (7), pc1 (6), risk (6), sell (6), switch (6), yield (6), correct (5), dep_var (5).

Commands (of the 3,930 packages running the fixed-effects estimator)

  • reghdfe2828
  • xtreg969
  • feols172
  • felm164
  • ivreghdfe99
  • xtscc62
  • xtivreg251
  • plm42

Inference (of the 3,930 packages running the fixed-effects estimator)

  • cluster3244
  • default1525
  • robust712
  • driscoll_kraay62
  • bootstrap51
  • newey_west14
  • randomization5
  • conley3

Clustering variables (of the 3,930 packages running the fixed-effects estimator)

  • id249
  • year177
  • gvkey114
  • date102
  • state80
  • fips75
  • permno68
  • county54

Absorbed fixed effects (of the 3,930 packages running the fixed-effects estimator)

  • year1093
  • id371
  • date163
  • gvkey120
  • month114
  • state94
  • age93
  • time84

Foundational works

What the papers whose code runs this estimator cite most (share of those papers citing each).

Recent examples, straight from the code

One model per package, from the most recent papers — each one shows the design itself (why is given beside it).

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 fixed-effects estimation
areg `x' inf_proxy i.yeartrim if sex_c==`y', abs(id) vce(cluster id)
Expected foreign military intervention and demand for state-building: Evidence from Mali Journal of Development Economics 2027 · jde_103897.do:265 · pkg 158602 fixed-effects estimation
reghdfe taxmorale post $controls $controlsint $oursample, abs(clid) cluster(geoname_id)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):
reghdfe taxmorale post age age2 male rural unemployed education relmember majorgroup pg rispmale samelang influenceother educinterw if REGION != 505 & date_ <= 6, abs(clid) cluster(geoname_id)
Monitoring and delivering: Evidence from dropout rates in Brazil Journal of Development Economics 2027 · event_study_figure.R:16 · pkg 162034 fixed-effects estimation
feols(total_drop_prim ~ sunab(year_treated, year, ref.p = c(-1)  ) | +
        ibge_cod + year,
      cluster = ~ibge_cod ,
      data = .)
Estimating Discount Functions with Consumption Choices over the Lifecycle Review of Financial Studies 2026 · 3_firststageregs_bs.do:30 · pkg 116 fixed-effects estimation
xtreg lny nkids nhead ndepadul urate cohd* age agesq agecu [aweight=avgwt], fe
What Problem Do Intermediaries Solve? Evidence From Real Estate Markets Review of Financial Studies 2026 · Replication_Package_code_RFS_RedX.do:2733 · pkg 134 fixed-effects estimation
reghdfe log_olp, absorb(ams_zip##listyear##listmonth##fe_beds##fe_sqft) resid
How Do Short-Term Incentives Affect Long-Term Productivity? Review of Financial Studies 2026 · _2_Code_For_Regressions.do:55 · pkg 135 fixed-effects estimation
reghdfe change_tfp3W negative_eps sue_repo_adj_prcw sue_repo_adj_prcwXleft, a( year) vce(cluster gvkey)
Gender Stereotypes and Entrepreneur Financing Review of Financial Studies 2026 · Table_10_PME_survey.do:119 · pkg 171 fixed-effects estimation
reghdfe vc female, cluster(ape2) absorb(apey)
Cooling Auction Fever: Evidence from the Housing Market Review of Financial Studies 2026 · Replication_code_RFS_All_Tables_Figures.do:94 · pkg 184 fixed-effects estimation
eststo: reghdfe log_p_d_first  Auction                           , absorb(postcode yyyymm00) vce(cluster postcode yyyymm00)
Does Finance Benefit Society? A Language Embedding Approach Review of Financial Studies 2026 · Replication_JLM-GoodFinance_03-TablesFigures_attitude_towards_capitalism.do:35 · pkg 193 fixed-effects estimation
eststo: xtscc all_stdscore `varn' `cont'
Failure to Share Natural Disaster Risk Review of Financial Studies 2026 · cat_rfs_code_fig4.py:102 · pkg 220 fixed-effects estimation
ols = PanelOLS.from_formula(formula, df2).fit(cov_type='clustered', cluster_time=True)
Who Bears Flood Risk? Evidence from Mortgage Markets in Florida Review of Financial Studies 2026 · 2_MainTables_final.do:167 · pkg 252 fixed-effects estimation
eststo: reghdfe OriginalLTV I_SHFA_final, ///
    cl(FIPS) absorb(fegroup)
The Present Value of Future Market Power Review of Financial Studies 2026 · 02_VARestimates.do:850 · pkg 257 fixed-effects estimation
reghdfe exp_`var3' ps [aweight = weight], `con' `FE' cl(year firm)
As we read it — macros filled in / loop expanded (an interpretation, not the file's text):
reghdfe exp_`var3' ps [aweight = weight], `FE' cl(year firm)