Tutorials › Econometrics (Graduate) › Factor-Robust Panel Cointegration and Error Correction

Panel Dependence and Inference · Tutorial 341 of 952

Factor-Robust Panel Cointegration and Error Correction

See how to account for shared stochastic trends when testing panel cointegration and modelling short-run adjustment toward long-run relationships.

Advanced 12 min read

What You'll Learn

  • Distinguish cointegration in a unit-specific relation from stationarity created by a shared common trend.
  • Construct factor-augmented cointegrating regressions using observed factors or cross-sectional proxies.
  • Explain why ordinary cross-sectionally independent panel test critical values may be invalid.
  • Interpret residual-based unit-root tests with factor augmentation.
  • Specify an error-correction model with common-shock controls and interpret its adjustment coefficient.
  • Separate evidence of long-run adjustment from evidence about short-run responses.

Why Shared Stochastic Trends Change the Problem

Panel cointegration asks whether a long-run combination of variables is stationary even though the variables themselves may contain unit roots. In a panel, the difficulty is not only that each unit may have its own trend. Units can also respond to the same persistent macroeconomic, institutional, or environmental shocks. If those shared shocks are stochastic trends, treating units as independent can distort both the cointegrating regression and the distribution of its test statistic.

A factor-robust analysis makes the shared source of persistence part of the model. It then tests whether the remaining unit-specific disequilibrium is stationary and describes how outcomes respond when that disequilibrium occurs. The central distinction is between a common stochastic trend, which may persist across units, and a stationary deviation from a long-run relation, which can be corrected over time.

Definition: A panel cointegrating relation is a linear combination of variables that are individually nonstationary but whose appropriately specified long-run residual is stationary. A factor-robust cointegration analysis allows common factors to induce cross-sectional dependence and accounts for them in estimation, testing, or both. It does not mean that any test is valid under every possible factor structure.

Modeling the Long-Run Relation and Common Factors

Let \(y_{it}\) be an outcome and \(x_{it}\) a vector of regressors for unit \(i=1,\ldots,N\) at time \(t=1,\ldots,T\). A useful representation of a long-run relation is

$$ y_{it} = a_i + \beta_i'x_{it} + \lambda_i'f_t + u_{it}. $$

Here \(a_i\) is a unit-specific intercept, \(\beta_i\) is the long-run slope vector, and \(f_t\) is a vector of common factors with unit-specific loadings \(\lambda_i\). The term \(u_{it}\) is the remaining disequilibrium. For a cointegrating relation, \(u_{it}\) is stationary, even when \(y_{it}\), components of \(x_{it}\), or the common factors have stochastic trends. The number and nature of the factors must be compatible with the estimation and testing procedure; this representation alone does not identify them.

A common factor may enter both \(y_{it}\) and \(x_{it}\). If its effects cancel in the long-run combination, the relation can be cointegrated without explicitly including that factor. If they do not cancel, a regression that omits the factor may leave a nonstationary residual, even when a factor-adjusted long-run relation has a stationary disequilibrium. Which situation applies is an empirical and modeling question, not something guaranteed by the presence of correlated observations.

When factors are observed, they can be included directly, subject to the required identifying and time-series assumptions. When they are unobserved, cross-sectional averages of the observed variables can serve as proxies for the space spanned by common factors under suitable factor-structure conditions. Such averages are not the factors themselves. Their usefulness depends on the loadings, the variables included, and the dimensions of the panel. Estimating factors or proxies also affects the null distribution of subsequent tests.

Worked Example: A Shared Trend That Remains in the Residual

Suppose two hypothetical units follow \(x_{it}=f_t+v_{it}\) and \(y_{it}=2x_{it}+3f_t+e_{it}\), where \(f_t\) is a shared stochastic trend and \(v_{it}\) and \(e_{it}\) are stationary. Assume, for this illustration, that the common factor is observed and the stated stationary terms do not contain other stochastic trends.

If we regress \(y_{it}\) on \(x_{it}\) with the long-run slope fixed at 2 but omit \(f_t\), the resulting relation is

$$ y_{it}-2x_{it}=3f_t+e_{it}. $$

Because \(f_t\) has a stochastic trend, this residual is generally nonstationary. The omission has left a common trend in what would be treated as disequilibrium; a conventional residual unit-root test is therefore not testing the intended factor-adjusted relation.

Include the observed factor with its correct coefficient instead:

$$ y_{it}-2x_{it}-3f_t=e_{it}. $$

The resulting residual is stationary under the assumptions just stated. This algebra shows why factor treatment matters; it does not establish that the coefficients are known or that the factor can be observed in an applied panel.

Factor-Augmented Residual Testing

A residual-based test begins by estimating the proposed long-run relation and then testing whether its fitted residuals contain a unit root. For a factor-augmented specification, the long-run regression includes observed common factors or suitable factor proxies. The residual test must also allow for the dependence and estimation steps relevant to the chosen procedure. A standard panel statistic derived under cross-sectional independence cannot simply be reused because the regression contains cross-sectional averages.

One schematic residual test for unit \(i\) is an augmented autoregression of the form

$$ \Delta\hat u_{it} = \rho_i\hat u_{i,t-1} +\sum_{j=1}^{p_i}\psi_{ij}\Delta\hat u_{i,t-j} +\text{factor or factor-proxy terms} +\eta_{it}. $$

The unit-root null is that the residual remains nonstationary, conventionally expressed as \(H_0:\rho_i=0\) in this parameterization; a negative value is evidence of mean reversion in the residual under the maintained specification. The lagged differences account for serial correlation, while factor terms are included as specified by the particular factor-augmented test. The exact deterministic terms, factor augmentation, panel aggregation, and reference distribution are procedure-specific.

A panel procedure may combine unit-level evidence, but its critical values must reflect its factor assumptions and asymptotic design. Estimating long-run coefficients first makes \(\hat u_{it}\) generated residuals, and estimating common factors or proxies adds another estimation step. Consequently, neither an ordinary single-series residual test distribution nor a cross-sectionally independent panel distribution is automatically valid. Use the critical values, bootstrap, or other inference method established for the specified factor-augmented procedure and its sample design.

Worked Example: Checking a Residual-Test Calculation

Consider a purely arithmetic illustration of the no-intercept regression \(\Delta\hat u_t=\rho\hat u_{t-1}+r_t\). Suppose the five lagged values are \((0.40,0.30,0.20,0.10,0.05)\), and the corresponding changes are \((-0.10,-0.10,-0.10,-0.05,-0.03)\). These are illustrative inputs, not claimed to be centered residuals from an estimated cointegrating regression; the calculation alone is not a panel cointegration test.

The least-squares slope for this regression through the origin is

$$ \hat\rho = \frac{\sum_t \hat u_{t-1}\Delta\hat u_t} {\sum_t \hat u_{t-1}^{\,2}} = \frac{-(0.40)(0.10)-(0.30)(0.10)-(0.20)(0.10)-(0.10)(0.05)-(0.05)(0.03)} {0.40^2+0.30^2+0.20^2+0.10^2+0.05^2} = \frac{-0.0965}{0.3025} \approx -0.3190. $$

Using this slope, the fitted regression residuals are

$$ \begin{aligned} r_1&=-0.10-(-0.0965/0.3025)(0.40)\approx 0.0276033,\\ r_2&=-0.10-(-0.0965/0.3025)(0.30)\approx -0.00429752,\\ r_3&=-0.10-(-0.0965/0.3025)(0.20)\approx -0.0361983,\\ r_4&=-0.05-(-0.0965/0.3025)(0.10)\approx -0.0180992,\\ r_5&=-0.03-(-0.0965/0.3025)(0.05)\approx -0.0140496. \end{aligned} $$

Their squared sum is approximately \(0.002616\). This verifies the regression arithmetic. It does not provide a valid p-value: that would require a fully specified residual test, its deterministic and lag terms, the factor treatment, and the correct reference distribution.

From a Cointegrating Relation to Error Correction

If \(u_{it}=y_{it}-a_i-\beta_i'x_{it}-\lambda_i'f_t\) is stationary, it measures the unit's deviation from its long-run relation. An error-correction model links this deviation to subsequent changes. One general form is

$$ \Delta y_{it} = \phi_i u_{i,t-1} +\sum_{j=1}^{p_i}\gamma_{ij}\Delta y_{i,t-j} +\sum_{j=0}^{q_i}\delta_{ij}'\Delta x_{i,t-j} +\sum_{j=0}^{s_i}\kappa_{ij}'\Delta f_{t-j} +\varepsilon_{it}. $$

The common-factor terms may be replaced by suitable proxy terms when factors are unobserved, in a specification that justifies that replacement. The lagged differences describe short-run dynamics; \(u_{i,t-1}\) is the previous period's long-run disequilibrium. A negative \(\phi_i\) means that, holding the included changes and other terms fixed, a positive disequilibrium predicts a reduction in \(y_{it}\) relative to its long-run relation. It is evidence of adjustment in this equation, not by itself proof of cointegration or causation.

Interpretation: In the simple adjustment equation \(u_{it}=(1+\phi_i)u_{i,t-1}\), convergence of the disequilibrium requires \(|1+\phi_i|<1\), equivalently \(-2<\phi_i<0\). More complicated dynamics require stability of the full dynamic system; a negative coefficient alone is not a complete stability check.

A Short Derivation of the Adjustment Term

The error-correction term follows directly from a simple long-run relation. Suppose, for a unit, that \(y_t=a+\beta'x_t+u_t\), with constant \(a\) and \(\beta\). Subtract the relation at \(t-1\) from the relation at \(t\):

$$ \Delta y_t=\beta'\Delta x_t+\Delta u_t. $$

If deviations adjust according to \(u_t=(1+\phi)u_{t-1}+\varepsilon_t\), subtract \(u_{t-1}\) from both sides to obtain \(\Delta u_t=\phi u_{t-1}+\varepsilon_t\). Substitution gives

$$ \Delta y_t=\beta'\Delta x_t+\phi u_{t-1}+\varepsilon_t. $$

Thus the lagged disequilibrium enters the change equation because the current change includes the change in the long-run residual. In an empirical model, additional lags and common-shock controls may be needed; the derivation does not imply that these terms can be omitted.

Worked Example: Interpreting an Error-Correction Coefficient

Suppose a hypothetical unit has a factor-adjusted long-run residual of \(u_{i,t-1}=10\) outcome units. Its fitted change equation includes \(\hat\phi_i=-0.30\), a regressor change contribution of \(1.2\) outcome units, and a common-shock contribution of \(0.5\) outcome units. Assume other terms are zero for this calculation.

The fitted change is

$$ \widehat{\Delta y}_{it} = (-0.30)(10)+1.2+0.5 = -3+1.2+0.5 = -1.3 $$

outcome units. The error-correction component alone is \(-3\) units: conditional on the other included terms, it pulls the outcome downward when the prior residual is positive. The total fitted change is \(-1.3\), not \(-3\), because the short-run regressor and common-shock terms contribute \(1.7\) units.

In the simplified residual recursion with no further dynamics, \(\phi_i=-0.30\) implies \(u_{it}=0.70u_{i,t-1}\). A residual of 10 would then become 7 after one step if the innovation were zero. This is a model-based illustration of adjustment, not a forecast that accounts for future shocks or additional dynamic terms.

Practical Interpretation and Common Pitfalls

Factor-robust cointegration and error correction matter because a panel can contain substantial dependence even after unit-specific trends have been accounted for. A shared stochastic trend can make ordinary residuals appear persistent, and common shocks can make nominal test sizes unreliable. Conversely, finding a negative error-correction coefficient does not settle whether the long-run residual is stationary: the cointegration claim requires an appropriate test and valid inference.

  • Ignoring common trends: treating shared nonstationarity as independent unit noise can leave a nonstationary component in the residual. Specify or proxy the common factor structure in the procedure being used.
  • Using the wrong critical values: a panel statistic derived under cross-sectional independence is not automatically valid after factor augmentation. Match inference to the test's factor assumptions and estimation steps.
  • Calling a negative adjustment coefficient proof of cointegration: the coefficient describes conditional adjustment in a specified equation. Establishing a stationary long-run residual is a separate inferential task.
  • Overinterpreting the adjustment speed: \(\phi_i\) is not always the fraction of disequilibrium eliminated in one period. That simple reading applies to the stated one-lag recursion, not automatically to a model with richer dynamics.
  • Confusing proxies with observed factors: cross-sectional averages approximate common-factor information only under suitable conditions; they are not guaranteed to remove every shared trend.
Key takeaway: Specify the common-factor structure in the long-run relation, use a residual-testing procedure with inference appropriate to that structure, and interpret error correction as conditional adjustment around the proposed relation. These are related steps, but none substitutes for the others.

Check Your Understanding

Answer each question using the factor-adjusted framework.

  1. In a long-run relation, what is the distinction between a common factor \(f_t\) and the unit-specific residual \(u_{it}\)?
  2. Why can omitting a shared stochastic trend leave a nonstationary residual even when a factor-adjusted relation has a stationary residual?
  3. What does a negative coefficient on \(u_{i,t-1}\) mean in an error-correction equation, and why does it not alone establish cointegration?
  4. Why is it unsafe to apply cross-sectionally independent panel critical values automatically to a factor-augmented residual test?
  5. In the simple recursion \(u_{it}=(1+\phi_i)u_{i,t-1}\), what range of \(\phi_i\) gives convergence?
Clinical Biostats