Following the same people, firms or countries over time — and how it helps control for hidden factors.
Panel data track the same units — individuals, households, firms, regions or countries — over multiple time periods.
Why panel data are powerful
Many factors that affect outcomes are unobserved but roughly constant over time: a person’s innate ability, a firm’s management culture, a country’s geography or institutions. With panel data, we can remove these fixed factors.
Fixed effects
A fixed effects model includes a separate intercept for each unit. Equivalently, it looks at changes within each unit over time, so anything constant for that unit drops out.
Worked example
Studying the effect of union membership on wages using cross-section data is biased if union members differ in unobserved ways. With panel data, we compare the same worker’s wage before and after joining a union, removing fixed personal characteristics.
Key idea
Fixed effects control for all time-invariant unobserved factors, even ones we cannot measure. But they cannot fix bias from factors that change over time.
Time effects
Adding time fixed effects (a dummy for each period) controls for shocks that hit all units at once — recessions, national policy changes, inflation.
Difference-in-differences as a panel method
Compare the change in outcomes for a group affected by a policy with the change for an unaffected group:
Effect = (After − Before)ₜᵣₑₐₜₑ𝒹 − (After − Before)꜀ₒₙₜᵣₒₗ
This relies on the parallel trends assumption: without the policy, both groups would have followed similar trends.
Limitations
- Fixed effects remove useful variation as well as bias; estimates can be imprecise.
- Attrition: units dropping out of the panel can cause bias.
- Measurement error can be amplified when using changes.
Exam tip
Explain how fixed effects remove time-invariant unobserved factors, and state the parallel trends assumption for difference-in-differences.