- Introduced by
- Hausman (1978); Anderson & Hsiao (1982); Arellano & Bond (1991)
- Year
- 1978-1991
- Type
- Causal inference / panel regression
- Family
- Quasi-experimental / causal inference
What does it do?
Panel data instrumental variables (Panel IV, or Panel 2SLS) combines instrumental variables (IV) estimation with the within-unit variation in repeated observations.
It targets endogeneity, meaning a regressor correlated with the error term because of omitted time-varying factors, reverse causation, or measurement error, in settings where the same units are observed over several periods. Hausman (1978) provided specification tests that compare estimators to detect whether an efficient estimator is misspecified, including an instrumental variable test. Arellano and Bond (1991) developed a GMM estimator for dynamic panel models with individual effects and lagged dependent variables, using linear moment restrictions from the absence of serial correlation in the errors.
The intuition behind the method
When a regressor is correlated with the error term, ordinary least squares is biased. An instrument shifts the endogenous regressor but does not affect the outcome except through that regressor, so the instrument isolates the part of the regressor's variation that is not confounded. In a panel, unit fixed effects (alpha_i) absorb time-invariant differences between units, so the instrument only needs to explain within-unit variation. Lagged values of the endogenous variable can sometimes serve as internal instruments once the data are differenced to remove the fixed effects, but their validity depends on the error structure and on the length of the panel.
History
Instrumental variables estimation is usually traced to the simultaneous-equations literature in econometrics. Hausman (1978) gave specification tests, including an instrumental variable test, that compare an efficient estimator with a consistent but less efficient one, which provides a practical way to check whether IV is needed. Arellano and Bond (1991) developed a GMM estimator for dynamic panel models with individual effects and lagged dependent variables, and their specification tests (serial correlation, Sargan, and Hausman) made panel IV with internal instruments practical.
When to use it
Use panel IV when a panel regression suffers from endogeneity: for example, when a treatment or policy variable is chosen by agents in response to the outcome, or when an important confounder varies over time and cannot be observed. You need at least one credible instrument, meaning a variable that moves the endogenous regressor without a direct effect on the outcome. Panel IV is a linear estimator. With binary or count outcomes, the interpretation depends on the model's functional form, so check the outcome type and the model assumptions before relying on the estimate. Do not use it when no credible instrument exists, because weak or invalid instruments can produce worse bias than OLS. Be cautious with short panels: with few periods there are few lagged values to use as internal instruments, so external instruments usually matter more. Endogeneity is also not guaranteed; a Hausman comparison of fixed-effects OLS and IV can show whether IV is needed.
Limitations and considerations
- A valid instrument that is both relevant and exogenous is hard to find. Weak instruments inflate standard errors and bias the estimate in the direction of OLS.
- In short panels (small T), lagged internal instruments are few and may be weak. In long panels, the number of lagged instruments can grow large relative to the number of units, which causes instrument proliferation.
- When endogeneity is absent, panel IV is less efficient than fixed-effects OLS, so using IV unnecessarily increases variance.
- Dynamic panel GMM requires no serial correlation in the differenced errors beyond the stated order. This assumption must be tested and is easily violated.
- Interpretation is local. With a binary instrument, IV identifies a local average treatment effect (LATE) for compliers, not an average effect for the whole population.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Corrects endogeneity bias from omitted time-varying variables, reverse causation, and measurement error in longitudinal data, where a cross-section cannot separate these from unit differences.
- Unit fixed effects absorb time-invariant unobserved heterogeneity. The instrument addresses time-varying endogeneity, provided it is relevant and exogenous after the within transformation (demeaning or differencing).
- In dynamic panel GMM (Arellano-Bond), lagged values of the endogenous variable can serve as internal instruments, which reduces reliance on external instruments when the error structure supports them.
- Overidentification tests (Sargan or Hansen J) give a partial check on instrument validity when there are more instruments than endogenous regressors.
- The estimator and its diagnostics are the same across fields, so the approach transfers between applications with different outcomes and data sources.
Applications
- Estimating the effect of education on wages in a panel of workers, using family background or distance to a college as an instrument for schooling.
- Evaluating the impact of capital investment on firm productivity in firm-level panels, using lagged investment as an internal instrument in an Arellano-Bond setting.
- Estimating the effect of trade openness on output growth in country-level panels, using geographic or historical trade-partner variables as instruments.
- Assessing the health effects of income or insurance coverage in longitudinal health surveys, using policy-generated variation as an instrument.
- Studying the wage effects of job training in employee panels, using eligibility rules or assignment indicators as instruments.
How it works
How it works
Write the structural equation with unit fixed effects (alpha_i), which capture all time-invariant heterogeneity. The coefficient beta on the endogenous regressor x is the target parameter. Identification requires that the structural error epsilon is uncorrelated with the instrument z, after the within transformation described below.
Formula
y_{it} = \alpha_i + \beta x_{it} + \varepsilon_{it}Regress the endogenous variable x on the instrument z and any controls, within the panel structure (fixed effects or first differences). A strong first stage is needed to avoid weak-instrument bias; F > 10 is a common rule of thumb for a single endogenous regressor with conventional standard errors. For several endogenous regressors or clustered errors, use weak-instrument statistics designed for that setting. The fitted values from this stage are the part of x explained by the instrument.
Formula
x_{it} = \pi_0 + \pi_1 z_{it} + \alpha_i + u_{it}Substitute the fitted values from the first stage into the structural equation and estimate by OLS (or GLS under random effects). In the within (fixed-effects) IV form, every variable is demeaned by unit, where x-bar_i, y-bar_i and z-bar_i are unit means: beta_IV = [sum over i and t of (x_it - x-bar_i)(z_it - z-bar_i)]^(-1) times [sum over i and t of (y_it - y-bar_i)(z_it - z-bar_i)]. The asymptotic normality of this estimator holds when N is large and the regularity conditions are satisfied. In Arellano-Bond style GMM, the endogenous regressor is first-differenced to remove the fixed effects, and lagged levels of x serve as instruments for the differenced equation.
Formula
y_{it} = \alpha_i + \beta \hat{x}_{it} + \varepsilon_{it}The instrument must satisfy relevance (correlation with the endogenous regressor) and exogeneity (no correlation with the structural error). Relevance can be checked with the first-stage F-statistic. Exogeneity is largely untestable; overidentification tests (Sargan or Hansen J) give only a partial check when there are more instruments than endogenous regressors. The condition is stated in levels. With fixed effects, exogeneity must hold for the error after the within transformation (demeaning or differencing), since the unit means absorb the time-invariant part of the error.
Formula
\text{Cov}(z_{it},\,\varepsilon_{it})=0 \;\text{ and }\; \text{Cov}(z_{it},\,x_{it})\neq 0Common pitfalls
- Using a weak instrument. Check the first-stage F-statistic; in the common rule of thumb, F < 10 signals a weak instrument, and IV estimates are then unreliable. This threshold is for a single endogenous regressor and should be replaced by a suitable weak-instrument statistic when there are several.
- Ignoring instrument proliferation in GMM. Too many instruments relative to the number of groups overfits the first stage, pushes coefficients toward OLS, and inflates the J-test p-value, which then gives a false sense of validity.
- Applying Arellano-Bond first-difference GMM without checking for second-order serial correlation in the differenced errors. If it is present, lag-2 instruments are invalid. Report the AR(2) test.
- Reading the IV estimate as an average treatment effect for the whole population when it identifies a local effect for the units whose endogenous regressor responds to the instrument.
- Defaulting to IV without a Hausman comparison. IV is preferred only when endogeneity is present; otherwise fixed-effects OLS is consistent and more efficient.
Frequently asked questions
What makes an instrument valid in a panel setting?
An instrument must be relevant, meaning it is correlated with the endogenous regressor (checked with a first-stage F above 10 as a rule of thumb), and exogenous, meaning it is uncorrelated with the structural error after the within transformation, so it affects the outcome only through the endogenous variable. In panel GMM, lagged levels or differences of the endogenous variable can serve as internal instruments after differencing removes the fixed effects, but their validity depends on the error structure.
When should I use Arellano-Bond GMM rather than fixed-effects IV (2SLS-FE)?
Arellano-Bond is designed for dynamic panel models in which the lagged dependent variable is a regressor, which makes it endogenous by construction. When there are no credible external instruments, lagged internal instruments exploited by GMM are the alternative, provided the serial-correlation assumptions hold. Fixed-effects IV is appropriate when you have external instruments and the model is not dynamic. In short panels, the number of usable lags is limited, so check the instrument count before choosing GMM.
How do I test whether IV is actually needed?
Use a Hausman test that compares the fixed-effects OLS estimate with the IV estimate. A significant statistic indicates endogeneity and supports IV. If the test is not significant, fixed-effects OLS is consistent and more efficient.
What is instrument proliferation and why does it matter?
In GMM, each lag of the endogenous variable generates a separate instrument. When the number of instruments grows large relative to the number of units, the first stage overfits, coefficients move toward OLS, and the J-test p-value becomes unreliable, giving a false sense of validity. Limit the instrument count by collapsing the instrument matrix or restricting the lag depth.
Can I use panel IV with a binary endogenous variable?
Yes, but the interpretation changes. With a binary endogenous variable and a binary instrument, IV identifies the local average treatment effect (LATE), which is the effect for compliers whose treatment status the instrument changes. This is generally different from the average treatment effect for the full population.
Related methods
Sources
Arellano, M., & Bond, S. (1991). Some tests of specification for panel data: Monte Carlo evidence and an application to employment equations. Review of Economic Studies, 58(2), 277-297.
Open DOI referenceHausman, J. A. (1978). Specification tests in econometrics. Econometrica, 46(6), 1251-1271.
Open DOI reference