Why Allow Each Unit Its Own Trend?
Panel units can follow different underlying trajectories. A hospital’s outcome may have been rising gradually before a policy changed; another hospital’s outcome may have been falling. A regression with unit intercepts alone accounts for stable differences in levels, but it does not account for those different linear paths. Adding a separate linear trend for each unit lets the model adjust for them while estimating a common effect for a covariate.
That adjustment has a precise cost: any covariate variation that can itself be represented by unit-specific intercepts and linear trends is no longer available to estimate its coefficient. The central question is therefore not simply whether a covariate changes within units, but whether it still varies after the trend terms and any other included controls have been removed.
Specification and Interpretation
Let \(y_{it}\) be the outcome for unit \(i\) at time \(t\), observed on the set of unit-time rows \(\mathcal{O}\). Let \(x_{it}\) be a vector of covariates with a common coefficient vector \(\beta\). A useful specification is
Here \(\alpha_i\) is a unit-specific intercept, \(\gamma_i\) is its linear trend, and \(\lambda_t\) is an optional common time effect that captures shocks shared across units at time \(t\). If the application does not call for common time effects, omit \(\lambda_t\). Including them requires care with normalization: for example, a common linear time pattern can be represented by the collection of unit-specific trends as well as by the \(\lambda_t\) terms. Redundant terms can be removed or constrained without changing the fitted-value space. What matters for estimating \(\beta\) is that the included design matrix has enough independent variation to identify it.
The coefficient \(\beta\) describes a common conditional relationship: for a one-unit increase in a covariate, its associated change in the model’s expected outcome is the corresponding coefficient, holding the other regressors and the included trend and time terms fixed. It does not automatically describe a causal effect. A causal interpretation needs additional assumptions about how the covariates relate to unobserved determinants of the outcome.
Which Variation Estimates the Coefficient?
The relevant variation can be stated exactly using the Frisch–Waugh–Lovell result. Stack the observed outcomes into \(y\), the covariate into a column \(x\), and all nuisance regressors into a matrix \(D\). The columns of \(D\) include the unit intercepts, the unit-specific time terms, and any common time effects or additional controls. Let \(M_D\) be the residual-making matrix for \(D\): applying \(M_D\) to a variable gives the residuals from its least-squares projection on \(D\).
The generalized inverse notation allows redundant columns in \(D\); equivalently, one can first remove redundant columns and use the usual inverse. In an unbalanced panel, the vectors and projections here use only the observed rows. Thus the estimate comes from the part of \(x\) that cannot be predicted by the trends and other included terms, paired with the corresponding part of \(y\). A large raw change in a covariate is not sufficient if that change follows a unit’s fitted linear trajectory.
Regress \(x\) on unit intercepts, unit-specific trends, and the other included controls. Retain the residual \(M_Dx\).
Retain the outcome residual \(M_Dy\), using the same observed rows and nuisance design.
The common coefficient is their cross-product divided by the residualized covariate’s sum of squares. If that denominator is zero, the coefficient cannot be estimated separately from the nuisance terms.
Worked Examples
Worked Example: Recovering a Common Effect After Unit Trends
Suppose three units are observed at \(t=0,1,2,3\). There are common time effects and unit-specific trends. Let \(q=(1,-1,-1,1)\) denote the time pattern and let the covariate be \(x_{it}=a_iq_t\), where \(a_i=0,1,2\) for the three units. The hypothetical outcomes follow \(y_{it}=\alpha_i+\gamma_i t+\lambda_t+2x_{it}\), with no additional error. Find the trend- and time-adjusted estimate of the common coefficient.
First, \(q\) is orthogonal to a constant and a linear time trend because \(1-1-1+1=0\) and \(0(1)+1(-1)+2(-1)+3(1)=0\). So removing each unit’s intercept and linear trend does not remove this time pattern. The common time effects then remove, at each time, the cross-unit mean of \(x\). Since the mean of \(a_i\) is \(1\), the residualized covariate is \((a_i-1)q_t\).
At each of the four times, the squared residualized covariate values across units sum to \((-1)^2+0^2+1^2=2\). Therefore
The outcome is the nuisance terms plus \(2x\). Applying the same residualization gives \(M_Dy=2M_Dx\). Thus
The estimate is \(2\) outcome units per covariate unit, conditional on the included trends and common time effects. This variation is not an overall time pattern shared by all units: after common time effects are removed, it is the differences between units’ covariate patterns that remain.
Worked Example: A Covariate Absorbed by the Trends
In a hypothetical panel, two units are observed at \(t=0,1,2,3\). The covariate values are \((3,5,7,9)\) for the first unit and \((8,7,6,5)\) for the second. The model includes a separate intercept and linear trend for each unit. Can a common coefficient on this covariate be estimated?
For the first unit, the values equal \(3+2t\). For the second, they equal \(8-t\). Thus the entire covariate column can be written as a combination of unit indicators and unit-specific time terms: it is already in the column space of \(D\). Consequently, \(M_Dx=0\), and
There is no remaining covariate variation with which to distinguish its coefficient from the unit trends. The coefficient is not identified in this specification, even though the covariate changes substantially over time in both units. Reporting a trend-adjusted point estimate would require changing the model or adding information, not merely using a different standard error.
Worked Example: Interpreting a Trend-Adjusted Estimate
Suppose a hypothetical analysis of 120 hospitals estimates the association between a policy-intensity measure and hospital waiting time. The covariate is measured in units of 10 percentage points, the outcome is measured in days, and the model includes hospital-specific intercepts and linear trends. The estimated coefficient is \(0.80\) days, with a unit-clustered standard error of \(0.24\) days. Calculate a large-sample 95% interval and interpret it.
Using the normal critical value \(1.96\), the interval is
Rounded to three significant figures, the interval is \([0.330,1.27]\) days per 10-percentage-point increase in policy intensity. Under the model, the estimated conditional association is positive: a 10-percentage-point difference in intensity is associated with an estimated \(0.80\)-day difference in waiting time, after adjusting for the included hospital trends and other regressors. Under the repeated-sampling assumptions used for the interval, the procedure would cover the target coefficient in about 95% of repeated samples. The interval alone does not establish a causal effect.
Assumptions Behind Trend-Adjusted Results
The algebra identifies the coefficient from residualized variation, but it does not by itself make the estimate substantively valid. The assumptions should match the claim being made.
- Correctly specified trend structure. The included linear trend is an adequate representation of the unit-specific evolution that the analysis intends to adjust for. A linear trend does not remove nonlinear changes or abrupt unit-specific shocks.
- Common covariate slope, if one is reported. The model assumes the same coefficient \(\beta\) applies across units. If effects differ, a common-slope estimate need not represent each unit’s effect; its interpretation depends on the model and the identifying variation.
- Exogeneity for causal interpretation. A causal reading requires that, conditional on the included terms, covariate changes are not systematically related to unobserved determinants of the outcome. In a fixed-effects panel model, a common strict-exogeneity condition is that the errors have conditional mean zero given the covariate histories and included effects. Feedback from past outcomes, omitted time-varying confounders, or policy responses to anticipated outcomes can violate this condition.
- Appropriate treatment of observed rows. In an unbalanced panel, estimation uses the available unit-time observations. Interpreting results beyond those observations requires assumptions about observation and selection; adding trends does not itself correct informative missingness or attrition.
- Inference that reflects dependence. Repeated observations from the same unit may have correlated errors. Standard errors should reflect the panel dependence structure; clustering by unit is a common approach when the number of independent units is adequate for the chosen inference method.
The trend terms may be useful because they prevent a smooth, unit-specific trajectory from being attributed to a covariate. But that protection is limited to the modeled trend shape. The coefficient is identified only by the covariate movements that survive all included adjustments, and causal interpretation further requires that those remaining movements are not confounded.
Common Mistake
A frequent mistake is to argue, “The covariate changes over time within each unit, so its coefficient is identified after adding unit-specific trends.” That is not enough: a covariate that changes at a constant rate within each unit is exactly absorbed by unit intercepts and linear trends. The correction is to examine the residualized covariate. Identification requires \(x'M_Dx>0\) for one covariate, not merely nonzero raw within-unit change. A second mistake is to interpret the resulting coefficient as causal simply because the trends have been included. Trends adjust for specified linear paths; they do not guarantee the absence of time-varying confounding or informative observation.
Check Your Understanding
Answer each question using the model and identifying-variation logic developed above.
- What does a unit-specific linear trend allow to differ across units, and what does it still assume about the shape of that change?
- Why can a covariate with substantial within-unit time variation nevertheless have no separately identified coefficient?
- In an unbalanced panel, which observations enter the residualization used to estimate a trend-adjusted coefficient?
- What additional type of assumption is needed to interpret a trend-adjusted association as a causal effect?
- If common time effects are included alongside unit-specific trends, why might the nuisance parameters require a normalization or redundant columns to be removed?