A Panel Fixed Effects (FE) regression is used when data involves panel data (the same entities—like countries, companies, or individuals—observed over multiple time periods).
Its main superpower is controlling for omitted variable bias. It does this by removing all unobserved, time-invariant (unchanging) characteristics of each entity.
The Concept
Consider a case examining whether increasing a company's R&D spending increases its profit.
Running a standard OLS regression across all companies could produce biased results due to factors like corporate culture, brand reputation, or management quality. A company with a great culture might have high profits and high R&D spending, making it appear that R&D is driving profits when culture is the real driver.
Management quality and culture are incredibly hard to measure. Fixed Effects solves this problem by looking only at the changes within each company over time. It essentially gives each company its own baseline intercept, stripping away the impact of any trait that stays constant over time.
The Rule of Thumb: Fixed effects controls for everything unique to the entity that doesn't change over time. However, it cannot estimate the effect of variables that never change (like a person's birth country or a company's founding year), because those get stripped out too.
An Example
Consider 3 companies tracked over 3 years:
- Entity (i): Companies (A, B, C)
- Time (t): Years (2024, 2025, 2026)
- Dependent Variable (Y): Profit
- Independent Variable (X): R&D Spend
The Fixed Effects Model Equation
Yᵢₜ = β·Xᵢₜ + αᵢ + εᵢₜ
| Symbol | Meaning |
|---|---|
| Yᵢₜ | Profit of company i in year t |
| Xᵢₜ | R&D spend of company i in year t |
| β (beta) | Coefficient — the effect of X on Y |
| αᵢ (alpha-i) | Fixed Effect for company i — its unique, permanent baseline |
| εᵢₜ (epsilon-i-t) | The remaining random error |
Extensions Worth Knowing
Two-way fixed effects (entity + time) — strips out year-specific shocks (like a recession hitting all companies):
Yᵢₜ = β·Xᵢₜ + αᵢ + λₜ + εᵢₜ
- λₜ (lambda-t): Time fixed effect — captures anything common to all entities in a given year (e.g., an industry-wide slump in 2025)
With additional control variables:
Yᵢₜ = β·Xᵢₜ + γ·Zᵢₜ + αᵢ + εᵢₜ
- γ (gamma): coefficient on the control variable
- Zᵢₜ: value of another time-varying control variable
Clustered standard errors: In practice, standard errors are almost always clustered at the entity level — meaning εᵢₜ is assumed correlated within entity i over time, but not across entities. This is usually noted in the write-up rather than the equation, but matters for correctly interpreting FE output.
No comments:
Post a Comment