A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Fixed Effects Models

College Depth 117 in the knowledge graph ☐ I know this ☆ Set as goal
63topics build on this
593prerequisites beneath it
See this on the map →
Dummy Variables and Categorical RegressorsLinear Transformations+1 more→→Difference-in-DifferencesDynamic Panel Models and Arellano-Bond/Blundell-Bond Estimation+5 more
fixed-effects within-estimator demeaning panel

Core Idea

The fixed effects (FE) estimator eliminates time-invariant unobserved heterogeneity by transforming the data so that unit means are removed — the 'within' transformation: ÿ_it = y_it − ȳᵢ. Regressing demeaned outcomes on demeaned regressors uses only within-unit variation over time, making α_i irrelevant. Equivalently, FE adds a dummy variable for each unit. Because FE uses only within-unit variation, it cannot estimate the effects of time-invariant regressors (e.g., gender, race). Two-way fixed effects adds time fixed effects, controlling for aggregate shocks common to all units.

How It's Best Learned

Manually demean a small panel dataset and run OLS on the demeaned data — verify the results match software FE output. Then try including a time-invariant variable and see that it perfectly collinears with unit dummies.

Common Misconceptions

Explainer

The fundamental problem in observational social science is that units — people, firms, countries — differ in ways we cannot measure. A student's innate ability, a firm's management culture, a country's institutional quality: these unobserved characteristics correlate with both the treatment variable (education spending, investment policy, governance reform) and the outcome (test scores, productivity, growth). Standard OLS, which you know from the normal linear regression model, will attribute to the observed regressor variation that actually comes from these hidden differences. The fixed effects estimator sidesteps this problem by discarding all variation *between* units and exploiting only variation *within* units over time.

The mechanics follow directly from your work on panel data and dummy variables. You can think of fixed effects as adding a dummy variable for every unit in the panel. Each dummy absorbs that unit's permanent characteristics — its average level of the outcome that can't be explained by observed regressors. Equivalently (and computationally more efficient), you demean the data: subtract each unit's time-average from every observation. This "within transformation" leaves only the within-unit deviations. The coefficient on regressor X is then estimated purely from periods when X changed for a given unit — not from comparing units with high X to units with low X. Because unobserved unit heterogeneity (α_i) is constant within a unit, demeaning removes it exactly.

The price of this power is the loss of cross-sectional variation. If a variable never changes within a unit — gender, country of birth, founding year of a firm — it is perfectly collinear with the unit fixed effects and drops out entirely. You cannot estimate the level effect of something that doesn't vary over time for any unit. Two-way fixed effects extend the model by also demeaning across time periods, absorbing common shocks that affect all units simultaneously (like a recession or a global commodity price spike). This leaves only variation that is both within-unit and within-time-period — the residual after removing unit means and time means.

The Common Misconceptions section flags the most important caveat: fixed effects remove *time-invariant* bias, but not all bias. If the regressor changes within a unit for reasons that are themselves correlated with the error — for instance, firms that are doing well choose to invest more, so investment correlates with productivity shocks — within-unit variation is also contaminated. Fixed effects are not a magic cure; they are a specific solution to a specific form of omitted variable bias. They work when the unobserved confounders are stable attributes of the unit. When confounders change over time, you need additional strategies like instrumental variables or difference-in-differences designs that build on the fixed effects logic.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Angle Pairs: Complementary, Supplementary, and Vertical → Parallel Lines and Transversals → Corresponding Angles → Alternate Interior Angles → Triangle Angle Sum Theorem → Exterior Angle Theorem → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Graphing Sine and Cosine → Graphing Tangent and Reciprocal Trigonometric Functions → Derivatives of Trigonometric Functions → Antiderivatives → Indefinite Integrals → Basic Integration Rules → Riemann Sums → Definite Integral Definition → Probability Density Functions and Continuous Distributions → Cumulative Distribution Functions → Continuous Random Variables → Probability Density Functions → Expected Value → Weak Law of Large Numbers → Probability Axioms and Rules → Conditional Probability → Independence of Events → Sampling Distributions → Standard Error of Estimators → Hypothesis Testing: Framework and Logic → P-values and Statistical Significance → Effect Size and Practical Significance → Hypothesis Testing: Framework and Logic → Z-Tests and T-Tests for Means → One-Sample Z-Test for Means → One-Sample and Two-Sample T-Tests → Inference in Linear Regression → Prediction Intervals in Regression → Linear Regression Basics → Residuals and Goodness of Fit (R²) → Simple (Bivariate) OLS Regression → Classical OLS Assumptions (Gauss-Markov) → Multiple Regression → Interpreting Regression Coefficients → Hypothesis Testing in Regression → F-Test and Joint Significance → R-Squared and Model Fit → Multicollinearity → Robust Standard Errors → Panel Data: Structure and Advantages → Fixed Effects Models

Longest path: 118 steps · 593 total prerequisite topics

Prerequisites (3)

Leads To (7)