i = 1,\ldots,N units (large); t = 1,\ldots,T periods (fixed and small)
\gamma — autoregressive parameter; |\gamma| < 1 required for stationarity
\mathbf{X}_{it} — time-varying covariates; may be strictly exogenous, predetermined, or endogenous
\alpha_i — unobserved unit-specific effect, constant over time; correlated with y_{i,t-1} by construction
\epsilon_{it} — idiosyncratic error; assumed IID(0,\sigma^2_\epsilon) across i and t
The core problem: since y_{i,t-1} = f(\alpha_i, \epsilon_{i,t-1}, \ldots), the lagged dependent variable is correlated with both \alpha_i and past errors. Every standard panel estimator fails for a different reason.
The dataset is characterized by large N and fixed (small) T — the short panel setting
Within and Between Variation
For any variable x_{it}, total variance decomposes as:
Bias is of order O(1/T) — negligible only for large T (e.g. T > 30)
Negative sign: FE under-estimates persistence — the opposite direction from OLS
Magnitude grows as \gamma \to 1: near-unit-root processes suffer worst
With \gamma = 0.8 and T = 5: the formula gives -0.45 / 2.076 \approx -0.22; FE reports \approx 0.58
Practical upshot: for the short panels typical in cross-national or firm-level data (T = 5–15), FE estimates of dynamic models are substantially distorted. GMM is needed.
GMM Foundations
The Method of Moments
Classical method of moments: set population moments equal to their sample analogs and solve
For OLS the identifying condition is \mathbb{E}[\mathbf{X}'\boldsymbol{\epsilon}] = 0:
With many instruments, the Hansen test has very low power and will often fail to reject even when instruments are invalid. A p-value > 0.95 signals too many instruments, not good identification.
One-Step, Two-Step, and Windmeijer (2005)
One-step GMM: use a fixed, non-data-dependent weighting matrix
Common choice: \mathbf{W}_N = (\mathbf{Z}'\mathbf{H}\mathbf{Z})^{-1} under homoskedasticity
Robust under weaker assumptions; but not asymptotically efficient
Two-step GMM: estimate the optimal weight matrix from first-step residuals
GMM-type (sequential): from the lagged dependent variable (and predetermined regressors)
\mathbb{E}[y_{i,t-s}\,\Delta\epsilon_{it}] = 0 \;\; \text{for } s \geq 2 \quad \Rightarrow \quad \text{instrument using } y_{i,t-2}, y_{i,t-3},\ldots
These accumulate: at period t, all levels y_{i1}, \ldots, y_{i,t-2} are valid instruments
In pgmm syntax:
Left of |: covariates entering the model (with desired lag structure)
Right of |: instruments; wrap GMM-type ones in lag(var, from:to)
The distinction between strictly exogenous, predetermined, and endogenous regressors controls how deep into the lag structure instruments are drawn — will reemerge shortly.
The Anderson-Hsiao Estimator
First Differencing: Removing \alpha_i and the New Problem
Take first differences of the DPD model to eliminate the unit effect:
We need instruments for \Delta y_{i,t-1} that satisfy: (1) relevance — correlated with \Delta y_{i,t-1}; (2) exogeneity — uncorrelated with \Delta\epsilon_{it}
Under IID \epsilon_{it}: y_{i,t-2} and \Delta y_{i,t-2} are both valid — they are correlated with \Delta y_{i,t-1} but predetermined relative to \Delta\epsilon_{it}
Anderson and Hsiao (1981)
Two 2SLS strategies using observations at t \geq 3:
Strategy 1 — Instrument with \Delta y_{i,t-2} (lagged differences):
Strategy 2 — Instrument with y_{i,t-2} (lagged levels):
\text{Cov}(y_{i,t-2},\,\Delta\epsilon_{it}) = 0 \;\; \checkmark \quad \text{and typically stronger first stage}
Wawro (2002) and Beck: The AH estimator performs poorly in finite samples. Econometricians agree.
Fundamental inefficiency: AH uses exactly one instrument per time period, leaving all deeper lags on the table. There are \frac{(T-2)(T-1)}{2} valid lagged-level instruments — AH uses only T-2 of them.
Arellano and Bond (1991) recast AH as a GMM problem, using all valid lagged levels simultaneously and weighting them optimally.
Arellano-Bond: Difference GMM
The Arellano-Bond Idea
Holtz-Eakin, Newey, and Rosen (1988) and Arellano and Bond (1991) recognized:
At each time period t, every level y_{i,s} with s \leq t-2 is a valid instrument for \Delta y_{i,t-1}
The instrument set grows with t:
Period t
Equation
Valid level instruments for \Delta y_{i,t-1}
3
\Delta y_{i3}
y_{i1}
4
\Delta y_{i4}
y_{i1},\; y_{i2}
5
\Delta y_{i5}
y_{i1},\; y_{i2},\; y_{i3}
T
\Delta y_{iT}
y_{i1},\ldots,\; y_{i,T-2}
Total GMM instruments from the DV — for a 1-lag AR(p=1) model:
This is a system of \frac{(T-2)(T-1)}{2} moment conditions (for a 1-lag model) for one parameter \gamma — heavily overidentified, and GMM is needed to optimally combine them
Crucial: the moment conditions are derived from lagged levels, not from outside the panel. The panel structure itself provides identification for free.
The T=3 Case: Wawro’s Worked Example
True model: y_{it} = \gamma y_{i,t-1} + \alpha_i + u_{it}. Substituting y_{i2} into the t=3 equation:
Because u_{i1} and u_{i2} are independent under IID errors, y_{i1} is a valid instrument for \Delta_{2,1}y_i. Under normality the differenced errors are normal and independent — the AH and AB conditions hold.
Strict Exogeneity, Predetermined, and Endogenous Regressors
The treatment of \mathbf{X}_{it} in the instrument matrix depends on the assumed feedback:
No feedback in any direction; all periods valid as instruments
Enter the instrument matrix as differences: \Delta x_{it}
Predetermined (weakly exogenous): \mathbb{E}[x_{it}\,\epsilon_{is}] \neq 0 if s < t; = 0 if s \geq t
Backward feedback allowed (past outcome affects x), no contemporaneous/future feedback
Instrument with x_{i,t-1},\; x_{i,t-2},\ldots — levels at t-1 and before
Endogenous: \mathbb{E}[x_{it}\,\epsilon_{is}] \neq 0 for s \leq t
Contemporaneous correlation; instrument with x_{i,t-2},\; x_{i,t-3},\ldots
Misclassifying a predetermined regressor as strictly exogenous will use invalid instruments and produce inconsistent estimates. The Sargan/Hansen test may or may not catch this.
Instrument Proliferation and Collapsing
For a model with p lags of y, the first valid GMM instrument appears at t = p+2 (period t must pre-date both endogenous terms). Total instruments from the DV:
\frac{(T-p-1)(T-p)}{2}
This is a quadratic function of T — for p=1: (T-2)(T-1)/2; for p=2: (T-3)(T-2)/2
T
p=1 lag: (T-2)(T-1)/2
p=2 lags: (T-3)(T-2)/2
5
6
3
7
15
10
10
36
28
15
91
78
The AB Table 4(a1) replication uses p=2, so the instrument counts in the right column apply. Note: additional predetermined covariates each contribute further columns with the same triangular structure — instrument count escalates rapidly.
Consequences (Roodman 2009): overfits the first stage; Hansen p-values cluster near 1.0; estimates biased toward FE. Rule of thumb: instruments \leq groups.
Remedy 1 — Limit lag depth: lag(log(emp), 2:4) instead of lag(log(emp), 2:99)
Remedy 2 — Collapse the instrument matrix (Roodman): one column per lag depth rather than one column per lag-period combination; reduces instruments from O(T^2) to O(T)
* In xtabond2 (Stata)xtabond2 n L.n L(0/1).w, gmm(L.n, lag(2 4) collapse) iv(L(0/1).w) twostep robust
Report both collapsed and uncollapsed results as a sensitivity check
The Arellano-Bond Serial Correlation Tests
In the differenced model, \Delta\epsilon_{it} = \epsilon_{it} - \epsilon_{i,t-1}
AR(1) test — H_0: \text{Cov}(\Delta\epsilon_{it},\;\Delta\epsilon_{i,t-1}) = 0
Even under IID levels errors, \text{Cov}(\Delta\epsilon_{it},\;\Delta\epsilon_{i,t-1}) = -\sigma^2_\epsilon \neq 0
Should reject — mechanical from the differencing transformation; failure to reject is the surprise
AR(2) test — H_0: \text{Cov}(\Delta\epsilon_{it},\;\Delta\epsilon_{i,t-2}) = 0
Under IID levels errors: \text{Cov}(\Delta\epsilon_{it},\;\Delta\epsilon_{i,t-2}) = 0 — should NOT reject
Rejection implies \text{Cov}(\epsilon_{it},\;\epsilon_{i,t-2}) \neq 0 in levels — this invalidates y_{i,t-2} as an instrument
If AR(2) rejects:
Use y_{i,t-3} and deeper lags as instruments (sacrifice some efficiency)
Add further lags of y to the RHS to absorb the serial correlation
Check AR(3) — how deep does the serial dependence extend?
In R: mtest(model, order=2) from plm; in Stata: estat abond
One-Step Arellano-Bond: Code and Results
Replicating Arellano and Bond (1991), Table 4(a1):
Twoways effects Two-steps model Difference GMM
Call:
pgmm(formula = log(emp) ~ lag(log(emp), 1:2) + lag(log(wage),
0:1) + log(capital) + lag(log(output), 0:1) | lag(log(emp),
2:99), data = EmplUK, effect = "twoways", model = "twosteps")
Unbalanced Panel: n = 140, T = 7-9, N = 1031
Number of Observations Used: 611
Residuals:
Min. 1st Qu. Median Mean 3rd Qu. Max.
-0.6190677 -0.0255683 0.0000000 -0.0001339 0.0332013 0.6410272
Coefficients:
Estimate Std. Error z-value Pr(>|z|)
lag(log(emp), 1:2)1 0.474151 0.185398 2.5575 0.0105437 *
lag(log(emp), 1:2)2 -0.052967 0.051749 -1.0235 0.3060506
lag(log(wage), 0:1)0 -0.513205 0.145565 -3.5256 0.0004225 ***
lag(log(wage), 0:1)1 0.224640 0.141950 1.5825 0.1135279
log(capital) 0.292723 0.062627 4.6741 2.953e-06 ***
lag(log(output), 0:1)0 0.609775 0.156263 3.9022 9.530e-05 ***
lag(log(output), 0:1)1 -0.446373 0.217302 -2.0542 0.0399605 *
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Sargan test: chisq(25) = 30.11247 (p-value = 0.22011)
Autocorrelation test (1): normal = -1.53845 (p-value = 0.12394)
Autocorrelation test (2): normal = -0.2796829 (p-value = 0.77972)
Wald test for coefficients: chisq(7) = 142.0353 (p-value = < 2.22e-16)
Wald test for time dummies: chisq(6) = 16.97046 (p-value = 0.0093924)
System GMM: Arellano-Bover / Blundell-Bond
The Weak Instruments Problem
Difference GMM works well when \gamma is moderate. Near the unit root, it breaks down.
When \gamma \approx 1:
y_{it} is near-nonstationary; \Delta y_{i,t-1} is nearly white noise
Lagged levels y_{i,t-2} are very weakly correlated with \Delta y_{i,t-1} — weak first stage
GMM estimates have large bias and unreliable SEs
Simulation evidence (Blundell and Bond 1998):
With \gamma = 0.9 and large \text{Var}(\alpha_i)/\text{Var}(\epsilon_{it}), the AB estimator is severely biased
The bias can approach that of the (inconsistent) OLS estimator in magnitude
The FE/pooled OLS bracket may be very wide, giving little information
Intuition: when the process is very persistent, there is little variation in y_{i,t-1} conditional on its own lags — the instrument is weak in exactly the same sense as a weak first stage in 2SLS.
This motivates System GMM: augment the difference equation with a levels equation, using lagged differences as additional instruments
System GMM: Arellano-Bover / Blundell-Bond
Arellano and Bover (1995) proposed additional moment conditions from the levels equation:
This holds under mean stationarity: \mathbb{E}[\Delta y_{i2}\cdot\alpha_i] = 0
i.e., the initial first-difference of y is uncorrelated with the permanent unit effect
Blundell and Bond (1998) show this assumption is plausible when y_{it} is stationary and y_{i0} is drawn from the stationary distribution — reasonable for many economic/social processes
System GMM stacks the differenced and levels equations, exploiting both sets of conditions jointly:
The difference-in-Hansen test (available in xtabond2) separately tests the validity of the levels equation instruments — i.e., it tests the mean stationarity assumption
A statistically sensible strategy: estimate both; if estimates are close, prefer System GMM for efficiency. If they differ substantially, investigate why.
Tests the additional moment conditions introduced by the levels equation in System GMM
Rejection suggests the mean stationarity assumption underlying System GMM is violated
Available in xtabond2 (Stata); not yet in plm::pgmm
Key limitation of all these tests: they are joint tests of all included instruments. A rejection does not identify which moments fail; a non-rejection does not guarantee all moments are valid.
library(plm)mtest(Table4.b, order =1) # AR(1) testmtest(Table4.b, order =2) # AR(2) test — key test
* After xtabond / xtdpd / xtabond2estat abond /* reports AR(1) and AR(2) by default */estat abond, lags(3) /* also request AR(3) */
A Diagnostic Checklist
Step 1 — Check AR(2)
If p < 0.05: serial correlation in levels. Use instruments dated t-3 or later, or extend lag depth.
Step 2 — Check Sargan/Hansen J-test
If p < 0.05: investigate which instrument blocks may be invalid. If p > 0.95: too many instruments — collapse or limit lag depth and retest.
Step 3 — System GMM only: difference-in-Hansen
If p < 0.05: stationarity assumption suspect — prefer Difference GMM.
Step 4 — Count instruments vs. groups
Report L and N; confirm L \leq N (Roodman’s rule of thumb).
Step 5 — Plausibility and brackets
Is \hat{\gamma} \in (0,1)? Does FE < \hat{\gamma}_{AB} < OLS? Are signs of \hat{\boldsymbol{\beta}} consistent with theory? Does the long-run effect \hat{\beta}/(1-\hat{\gamma}) make substantive sense?
Bias-Corrected LSDV
LSDV, Nickell Bias, and the Kiviet/Bruno Correction
LSDV (Least Squares Dummy Variables) = within estimator = FE
Nickell’s (1981) bias approximation as N\to\infty with T fixed:
where \hat{B} is estimated using a consistent initial estimate of \gamma from AH, AB, or BB
Bruno (2005) extended this to unbalanced panels
Bootstrap standard errors are used since analytic SEs for the corrected estimator are complex
Preferred when: N is small relative to T (e.g. N < 50), where GMM instrument proliferation is especially damaging; or as a robustness check alongside GMM results
# Bias-corrected LSDV is primarily available in Stata# In R, 'pdynmc' provides related dynamic panel estimators# install.packages("pdynmc")library(pdynmc)# pdynmc estimates linear DPD models with various GMM configurations# See vignette("pdynmc") for LSDVC-style bias correction options# As a practical alternative — compare FE to GMM to bracket the true gammafe_mod <-plm(log(emp) ~lag(log(emp), 1) +log(wage) +log(capital) +log(output),data = EmplUK, model ="within", effect ="twoways")summary(fe_mod)
* Bias-corrected LSDV — Bruno (2005)* initial() options: ah, ab, or bb* vcov(B) requests B bootstrap replications forSExtlsdvc n L.n L(0/1).w L(0/1).k yr1980-yr1984, /// initial(ab) vcov(500) lags(1)* Compare initializationsforeach init in ah ab bb { xtlsdvc n L.n L(0/1).w L(0/1).k yr1980-yr1984, /// initial(`init') vcov(200) lags(1)}
Estimates are typically between the FE (downward biased) and GMM (larger variance) results — a useful triangulation when N is small.
Extensions
Unbalanced Panels and Orthogonal Deviations
First differences and gaps: if y_{i,t-1} is missing, \Delta y_{it} is unavailable. Gaps propagate — one missing period can eliminate adjacent observations.
Orthogonal deviations (Arellano and Bover 1995): express each observation as a deviation from the mean of all future available observations
* Panel VAR — Abrigo and Love (2016)* ssc install pvarpvar log_emp log_wage, lags(1) fod twosteppvarirf, oirf mc(500) step(10)
R package
Stata command
Coverage
plm::pgmm
xtabond, xtdpd
AB, BB
panelvar
xtabond2
AB, BB, collapse, orthog, diff-in-Hansen
pdynmc
xtlsdvc
LSDVC, extended GMM
Slope Heterogeneity: Testing Before You Pool
All AB/BB estimators assume homogeneous slope vectors\boldsymbol{\beta} — the same \gamma, same wage elasticity, same capital elasticity for every unit. Pesaran and Smith (1995) proved that pooling with heterogeneous slopes yields inconsistent estimates even with no endogeneity, as N, T \to \infty.
Pesaran-Yamagata (2008) \tilde{\Delta} test — run H_0: \boldsymbol{\beta}_i = \boldsymbol{\beta}\;\forall i before deciding to pool:
library(plm)# Pesaran CD test for cross-sectional dependence (prerequisite)ab_fe <-plm(n ~lag(n,1) + w + k + ys, data=EmplUK,model="within", effect="twoways")pcdtest(ab_fe) # Pesaran (2015) CD test# Mean Group estimator (requires sufficient T per unit)# pmg() in plmmg_mod <-pmg(n ~lag(n,1) + w + k + ys, data=EmplUK,model="mg") # mean grouppmg_mod <-pmg(n ~lag(n,1) + w + k + ys, data=EmplUK,model="pmg") # pooled mean group# Hausman-type test: MG vs PMG (tests LR homogeneity)phtest(mg_mod, pmg_mod)
* Pesaran (2004) CD testxtcd n /* cross-sectional dependence test */* Pesaran-Yamagata slope homogeneity testxtslope n L.n wk ys /* ssc install xtslope */* Mean Group and Pooled Mean Groupxtpmg d.n d.wd.kd.ys, lr(L.n wk ys) ec(ec) full mgxtpmg d.n d.wd.kd.ys, lr(L.n wk ys) ec(ec) full pmg* Hausman test: PMG vs MG (tests LR slope homogeneity)hausman mg_est pmg_est* Dynamic CCE (handles cross-sectional dependence + lagged DV)* ssc install xtdcce2xtdcce2 n L.n wk ys, dcce lr(L.n wk ys)
Extensions to Binary and Count Outcomes
The entire DPD framework so far assumes a continuous outcome. But many social science DVs are discrete:
Predicted probabilities escape [0,1] (linear probability model)
The incidental parameters problem (Neyman and Scott 1948): in nonlinear FE models, \hat{\alpha}_i is estimated from T observations and is inconsistent as T fixed, contaminating \hat{\boldsymbol{\beta}}
The Heckman (1981) initial conditions problem: the distribution of y_{i1} depends on \alpha_i, so we cannot simply condition on y_{i1} as observed
Wooldridge (2005, JAE) provides the cleanest solution — correlated random effects (CRE) conditioning:
Model \alpha_i \mid y_{i1},\bar{\mathbf{x}}_i \sim \mathcal{N}(\psi_0 + \psi_1 y_{i1} + \bar{\mathbf{x}}_i\boldsymbol{\psi}_2,\; \sigma^2_a), then integrate out \alpha_i. This yields a standard random-effects probit / Poisson augmented with y_{i1} and unit-means \bar{\mathbf{x}}_i as additional regressors:
library(lme4)# Construct Mundlak/Wooldridge termspanel_df <- EmplUK |>group_by(firm) |>mutate(n_bin =as.integer(n >median(n)), # example binary DVn_init =first(n_bin), # initial value y_{i1}w_bar =mean(w, na.rm =TRUE), # unit mean of wagek_bar =mean(k, na.rm =TRUE) # unit mean of capital ) |>ungroup()# Wooldridge (2005) CRE dynamic probit via glmermod_cre_probit <-glmer( n_bin ~lag(n_bin) + w + k + n_init + w_bar + k_bar + (1| firm),data = panel_df, family =binomial(link ="probit"))summary(mod_cre_probit)# For counts: CRE Poisson (Blundell-Griffith-Windmeijer 2002)mod_cre_pois <-glmer( emp ~lag(emp) + w + k + n_init + w_bar + k_bar + (1| firm),data = panel_df, family = poisson)
* Construct Mundlak/Wooldridge termsbysort id: gen y_init = y_binary[1]bysort id: egen w_bar = mean(w)bysort id: egen k_bar = mean(k)* Wooldridge (2005) CRE dynamic probitxtprobit y_binary L.y_binary wk y_init w_bar k_bar, re* Average partial effects (critical for interpretation)margins, dydx(*) predict(pu0)* For count outcomes: CRE Poissonxtpoisson emp L.emp wk y_init w_bar k_bar, remargins, dydx(*) predict(nu0)* Test: is the initial condition coefficient significant?* (psi1 != 0 confirms the initial conditions problem is real)test y_init
Key interpretation note: coefficients from CRE probit/Poisson are not average partial effects (APEs). Always compute APEs via margins (Stata) or the marginaleffects package (R) and interpret those — not the latent-index coefficients.
Applied Example: UK Manufacturing Employment
The Data: EmplUK / abdata
Based on Layard and Nickell (1986), Unemployment in Britain, Economica 53
Obs: 1,031 140 UK manufacturing firms, 1976–1984 (unbalanced)
Variable Description
-------- -----------------------------------------------
id / firm Firm identifier
year Year (1976–1984)
emp / n Employment count / log(employment)
wage / w Real wage / log(real wage)
capital/k Gross capital stock / log(capital)
output/ys Industry output / log(industry output)
yr1980–yr1984 Year dummy indicators
use abdata, clear* Variables n, w, k, ys already inlog form in abdataxtset id yearxtdescribe /* inspect panel structure */xtsum n wk ys /* within/between/overall variance */
Research question: How do wages, capital, and industry output shape firm employment? What is the degree of employment persistence, and how quickly does adjustment occur?
Employment (n): roughly 30–40% within — meaningful time-series variation across firms
Wage (w) and Capital (k): dominated by between variation — identification concerns for GMM instruments
Output (ys): industry-level variable; nearly all variation is between firms — appropriate as a strictly exogenous regressor
Specification Choices
Lag depth for the DV: AB (1991) uses two lags — test if the second is significant; confirm AR(2) is not rejected with this choice
Treatment of covariates:
w (wage): predetermined — firms plausibly adjust wages in response to past employment shocks; instrument with levels at t-1 and before
k (capital): potentially endogenous — investment and employment may be jointly determined; instrument with levels at t-2 and before
ys (output): strictly exogenous — industry output is not set by an individual firm; enter as \Delta ys_{it}
Time fixed effects: effect = "twoways" in pgmm; yr1980-yr1984 dummies in Stata — controls for macroeconomic shocks common to all firms
Instrument discipline: begin with lag(..., 2:99); monitor instrument count and Hansen p-value; re-estimate with 2:4 or collapsed as robustness
Results and Long-Run Interpretation
Selected estimates across estimators
Estimator
L.emp
L2.emp
Wage (contemp.)
Fixed Effects (FE)
0.733
-0.139
-0.560
AB One-Step
0.686
-0.085
-0.608
AB Two-Step (Windmeijer)
0.474
-0.053
-0.513
System GMM (BB)
0.936
—
-0.631
Key patterns: FE under-estimates persistence (Nickell bias); System GMM yields the highest \hat{\gamma}; AB two-step with Windmeijer SEs is the benchmark for DPD
Long-run effects from AB two-step (Table 4b)
In steady state y^* = \gamma_1 y^* + \gamma_2 y^* + \sum_j \beta_{x,j} x^*, so:
\text{LR effect of } x = \frac{\sum_j \hat{\beta}_{x,j}}{1 - \hat{\gamma}_1 - \hat{\gamma}_2}
Sum all lag coefficients on each x (numerator); subtract the sum of AR coefficients from 1 (denominator).
# Extract AB two-step coefficients by name for transparencycf <-coef(Table4.b)g1 <- cf["lag(log(emp), 1:2)1"]; g2 <- cf["lag(log(emp), 1:2)2"]bw0 <- cf["lag(log(wage), 0:1)0"]; bw1 <- cf["lag(log(wage), 0:1)1"]bk <- cf["log(capital)"] # only lag-0 in Table 4b specby0 <- cf["lag(log(output), 0:1)0"]; by1 <- cf["lag(log(output), 0:1)1"]adj_speed <-1- g1 - g2 # denominator for all LR effectscat(sprintf("gamma1 = %6.4f gamma2 = %6.4f\n", g1, g2))
gamma1 = 0.4742 gamma2 = -0.0530
cat(sprintf("sum(gamma) = %6.4f\n", g1 + g2))
sum(gamma) = 0.4212
cat(sprintf("Speed of adj. = 1 - %6.4f = %6.4f (~%.0f%% per year)\n", g1+g2, adj_speed, 100*adj_speed))
Speed of adj. = 1 - 0.4212 = 0.5788 (~58% per year)
Start here — Is there a lagged DV or outcome-to-covariate feedback?
No → standard FE/RE panel models suffice; stop here
Yes → continue below
Is T large (> 20–30)?
Yes → Nickell bias is small; FE or LSDVC may be sufficient with a robustness check
No → proceed to GMM
Is N small (< 50)?
Yes → instrument proliferation is severe; use LSDVC, or limit instruments aggressively before applying GMM
Is \gamma likely near 1 (high persistence)?
Yes → Difference GMM instruments are weak; prefer System GMM; validate with diff-in-Hansen
No → Difference GMM (AB) is appropriate; report System GMM as robustness
Always report alongside any GMM result:
Instrument count (L) vs. number of groups (N)
AR(1) and AR(2) p-values
Sargan/Hansen p-value
FE and pooled OLS for bracketing comparison
Common Pitfalls
1. Reporting lag(y, 2:99) without checking instrument count
A Hansen p-value of 0.99 is not good news — it signals the test has no power
2. Treating predetermined covariates as strictly exogenous
Using \Delta x_{it} as an instrument when x_{it} responds to past y introduces invalid moments
3. Ignoring the AR(2) test
If y_{i,t-2} is correlated with the error in levels, it cannot instrument for \Delta y_{i,t-1}
4. Two-step GMM without Windmeijer correction
Naive two-step standard errors are dramatically under-estimated in short panels; always specify robust
5. Forgetting time fixed effects
Without year dummies, common macro shocks enter the error and correlate with all lagged instruments
6. Conflating persistence with long-run elasticity
\hat{\gamma} measures the speed of adjustment — high \hat{\gamma} means slow adjustment, not instability (provided \hat{\gamma} < 1)
Poolers vs. Time-Series Scholars
The core philosophical tension in panel data:
Poolers begin with the presumption that data can be pooled:
The composite / population-averaged inference is the target
Unit effects are nuisances to control for, not the object of inquiry
Pooling is the default; heterogeneity is corrected, not modelled
Time-series scholars begin with deep scepticism of pooling:
Units are heterogeneous; pooling requires evidence, not assumption
The unit-specific trajectory is often substantively interesting
Estimates from short panels with large N describe a fictional average unit
These are priors and proclivities — neither is derived from a general rule
DPD/GMM sits in an uncomfortable middle:
Explicitly motivated by the cross-sectional dimension (N large)
But identification comes entirely from the time-series dimension of each unit
The practical upshot: theory should drive model choice. The choice of estimator is not neutral — it encodes maintained assumptions about the data-generating process. Report multiple estimators, be transparent about what each assumes, and let substantive interpretation guide, not justify, the choice.
Looking Ahead — GMM-DPD as Causal Claims: The Imai-Kim Connection
GMM-DPD is a consistency-and-identification framework. The causal tradition asks sharper questions: for whom and under what counterfactual does \hat{\gamma} or \hat{\boldsymbol{\beta}} describe a treatment effect?
GMM moment conditions are causal claims in disguise:
Strict exogeneity: \mathbb{E}[x_{it}\epsilon_{is}]=0\;\forall s,t = “outcomes never feed back to x” — no-feedback in potential-outcomes language
Instrument validity \mathbb{E}[y_{i,t-2}\Delta\epsilon_{it}]=0 = an exclusion restriction: y_{i,t-2} affects y_{it} only through \Delta y_{i,t-1}
Imai and Kim (2019, AJPS) show TWFE identifies a causal effect only under two assumptions rarely stated:
Assumption
TWFE
DPD
No carryover: D_{i,t-s} does not directly affect Y_{it}
Maintained silently
Partially relaxed via distributed lags
No reverse feedback: Y_{i,t-s} does not affect D_{it}
Maintained silently
Explicitly modelled — the whole point of the lagged DV
By including y_{i,t-1} and instrumenting it, DPD moves Assumption 2 from the error term into the model. This is the DPD framework’s core contribution to causal thinking about panels. Assumption 1 (no carryover of treatment) remains implicitly maintained in most applications and requires distributed lag structures to relax.
Parallel Trends vs. Sequential Moment Conditions
Both the DiD tradition and the DPD tradition use panel data to recover effects of interest. They represent two different identification strategies for related but distinct questions.
DPD / GMM
DiD / Parallel Trends
Question
How persistent is y? What is the effect of x on y?
What is the causal effect of a treatment D?
Identifying assumption
Sequential moment conditions: \mathbb{E}[y_{i,t-s}\Delta\epsilon_{it}]=0
Parallel trends: \mathbb{E}[Y_{it}(0)-Y_{is}(0)] equal across groups
Variation used
Within-unit over time (IV from lagged values)
Across-group difference in trends
Units as
Exchangeable observations
Treated vs. control groups
Treatment
x_{it} enters as covariate; may be endogenous
D_{it} is binary or discrete; staggered adoption
Dynamics
\hat{\gamma} is the object of inference
Often assumed away (no-carryover)
The tension: DiD estimators that ignore \hat{\gamma} are misspecified when outcomes are persistent — the untreated potential outcome Y_{it}(0) itself follows an AR process, and parallel trends in levels does not hold if the pre-treatment trajectories diverge at different rates. Omitting the lagged DV from a DiD specification conflates treatment effects with autoregressive persistence.
TWFE, ATT(g,t), and the Day 10 Preview
The TWFE problem: Goodman-Bacon (2021) shows standard TWFE with staggered adoption is a weighted average of all 2\times 2 DiD comparisons — including ones where already-treated units serve as controls for later-treated units, generating negative weights when effects are heterogeneous over time or across cohorts.
Wooldridge’s (2021) unifying result: TWFE \equivtwo-way Mundlak regression — the Mundlak (1978) correlated-random-effects device we already know from DPD:
the average effect for cohort g at time t using never/not-yet-treated controls — heterogeneity-robust by construction.
The Day 9 → Day 10 handoff: Omitting \hat{\gamma} from a DiD specification is only valid if \gamma = 0or treatment is independent of past outcomes. When the outcome is genuinely persistent, the untreated potential outcome Y_{it}(0) itself follows an AR process and parallel trends in levels need not hold even when it holds in differences. Day 10 addresses when the \gamma = 0 restriction can be defended and when a hybrid DPD-DiD approach is required.
Estimator
Estimand
R / Stata
Callaway-Sant’Anna (2021)
ATT(g,t)
did; csdid
de Chaisemartin-D’Haultfoeuille (2020)
ATT for switchers
DIDmultiplegt; did_multiplegt
Sun-Abraham (2021)
CATT(g,t)
fixest::sunab(); eventstudyinteract
Wooldridge (2021, 2023)
ATT aggregates (ETWFE)
etwfe; jwdid
References
Core DPD and GMM
Anderson, T.W. and Hsiao, C. (1981). Estimation of dynamic models with error components. JASA, 76, 598–606.
Arellano, M. and Bond, S. (1991). Some tests of specification for panel data. Review of Economic Studies, 58, 277–297.
Arellano, M. and Bover, O. (1995). Another look at the instrumental variable estimation of error-components models. Journal of Econometrics, 68, 29–51.
Blundell, R. and Bond, S. (1998). Initial conditions and moment restrictions in dynamic panel data models. Journal of Econometrics, 87, 115–143.
Bruno, G.S.F. (2005). Approximating the bias of the LSDV estimator for dynamic unbalanced panel data models. Economics Letters, 87, 361–366.
Holtz-Eakin, D., Newey, W. and Rosen, H.S. (1988). Estimating vector autoregressions with panel data. Econometrica, 56, 1371–1395.
Nickell, S. (1981). Biases in dynamic models with fixed effects. Econometrica, 49, 1417–1426.
Roodman, D. (2009). How to do xtabond2. Stata Journal, 9, 86–136.
Wawro, G. (2002). Estimating dynamic panel data models in political science. Political Analysis, 10, 25–48.
Windmeijer, F. (2005). A finite sample correction for the variance of linear efficient two-step GMM estimators. Journal of Econometrics, 126, 25–51.
Slope Heterogeneity and Cross-Sectional Dependence
Ditzen, J. (2021). Estimating long-run effects and the exponent of cross-sectional dependence: an update to xtdcce2. Stata Journal, 21, 687–707.
Mundlak, Y. (1978). On the pooling of time series and cross section data. Econometrica, 46, 69–85.
Pesaran, M.H. (2006). Estimation and inference in large heterogeneous panels with a multifactor error structure. Econometrica, 74, 967–1012.
Pesaran, M.H., Shin, Y. and Smith, R.P. (1999). Pooled mean group estimation of dynamic heterogeneous panels. JASA, 94, 621–634.
Pesaran, M.H. and Smith, R.P. (1995). Estimating long-run relationships from dynamic heterogeneous panels. Journal of Econometrics, 68, 79–113.
Pesaran, M.H. and Yamagata, T. (2008). Testing slope homogeneity in large panels. Journal of Econometrics, 142, 50–93.
Nonlinear and Limited Dependent Variable DPD
Blundell, R., Griffith, R. and Windmeijer, F. (2002). Individual effects and dynamics in count data models. Journal of Econometrics, 108, 113–131.
Heckman, J.J. (1981). The incidental parameters problem and the problem of initial conditions. In Manski and McFadden (eds.), Structural Analysis of Discrete Data. MIT Press.
Wooldridge, J.M. (2005). Simple solutions to the initial conditions problem in dynamic, nonlinear panel data models with unobserved heterogeneity. Journal of Applied Econometrics, 20, 39–54.
Wooldridge, J.M. (2023). Simple approaches to nonlinear difference-in-differences with panel data. Econometrics Journal, 26, C31–C66.
Causal Identification and DiD (Day 10 preview)
Callaway, B. and Sant’Anna, P.H.C. (2021). Difference-in-differences with multiple time periods. Journal of Econometrics, 225, 200–230.
de Chaisemartin, C. and D’Haultfoeuille, X. (2020). Two-way fixed effects estimators with heterogeneous treatment effects. American Economic Review, 110, 2964–2996.
Goodman-Bacon, A. (2021). Difference-in-differences with variation in treatment timing. Journal of Econometrics, 225, 254–277.
Imai, K. and Kim, I.S. (2019). When should we use unit fixed effects regression models for causal inference with longitudinal data? American Journal of Political Science, 63, 467–490.
Sun, L. and Abraham, S. (2021). Estimating dynamic treatment effects in event studies with heterogeneous treatment effects. Journal of Econometrics, 225, 175–199.
Wooldridge, J.M. (2021/2025). Two-way fixed effects, the two-way Mundlak regression, and difference-in-differences estimators. Empirical Economics. SSRN 3906345.