Timedora

Interpreting Two-Way Fixed Effects

Learn what two-way fixed-effects coefficients capture and where their interpretation stops.

What the coefficient compares

What the coefficient compares

A two-way fixed-effects model separates changes within units from persistent differences between units and shifts shared across time. A common specification is

yit=αi+λt+βxit+uit,y_{it} = \alpha_i + \lambda_t + \beta x_{it} + u_{it},

where ii identifies a unit and tt a time period. The outcome is yity_{it}, and xitx_{it} is a predictor whose relationship with the outcome is being estimated.

The unit effect, αi\alpha_i, gives each unit its own baseline. It accounts for characteristics that stay constant over the observed period, whether measured or unmeasured. The time effect, λt\lambda_t, gives each period a common shift, accounting for shocks or trends shared across units—for example, a nationwide downturn. The coefficient β\beta describes the relationship between the predictor and outcome conditional on these effects and any other included controls; uitu_{it} represents the remaining error.

The key is the comparison behind β\beta. With unit effects, the model does not estimate the relationship by comparing units’ average levels. Instead, it uses how the predictor and outcome change within the same unit over time. With time effects as well, those within-unit changes are adjusted for common movements in each period. So the comparison is not simply a raw before-and-after difference: it asks how changes within a unit relate after accounting for period-wide shifts.

In a balanced panel, this is equivalent to using each observation’s deviation from its unit average and its period average, then adding back the overall average. This equivalence is stated for balanced panels; the central interpretation remains that the estimate uses within-unit variation adjusted for included time effects.

For the source example, suppose an economist studies firms’ investment and productivity. Firm effects account for persistent differences such as location or management culture, while year effects account for conditions shared across firms, such as a national downturn. An estimated investment coefficient of 0.40.4 means that a one-unit increase in investment is associated with a 0.40.4-unit increase in productivity, based on within-firm changes adjusted for year effects, assuming the variables are expressed in those units. It is a conditional association, not a comparison of firms with different average investment levels.

What cannot resolve

What cannot resolve

Unit absorb characteristics that do not change within a unit, so such characteristics cannot also receive separate coefficient estimates alongside those effects. For example, a firm’s founding region is constant for that firm across the observed periods. Because it does not vary within the firm, the model cannot distinguish a separate founding-region coefficient from the firm’s own fixed effect.

also do not automatically account for factors that change over time within a unit. As a hypothetical illustration, a changing factor that influences both a firm’s investment and its productivity could still confound their estimated relationship if it is not otherwise addressed in the model.

Therefore, including unit and time effects does not by itself establish that a coefficient is causal. A causal interpretation requires additional assumptions about how the included predictors relate to unobserved influences on the outcome. address stable differences across units and common shifts across periods, but they do not guarantee that every source of bias has been removed.

  • : Data that follow the same units, such as firms, across multiple time periods.

  • : A characteristic whose value remains constant over the observed time periods.

  • : A factor related to both a predictor and an outcome that can complicate interpretation of their relationship.