EconStatsCraft rigorous, plain-spoken econometrics
Econometrics that explains itself.
Regression, panel data, time series and the whole battery of tests. Every result is followed by a verdict you can defend.
Load a dataset to see it here.
EconStatsCraft › Dynamic panel GMM
When the past of the outcome belongs on the right-hand side, fixed effects is biased (Nickell) and OLS is biased the other way. Difference and system GMM instrument the lagged dependent variable with its own deeper lags.
Put last period's outcome on the right-hand side of a panel and both standard estimators break, in opposite directions. Pooled OLS confuses persistence with the fixed effect and reads too high. Fixed effects demeans the data, which drags the lagged term into the error and reads too low. The truth is trapped between two biased numbers, and GMM instruments the lag with deeper lags to get at it.
Short, wide panels - many entities, few periods - where the outcome is persistent. If T is large the Nickell bias is small and plain fixed effects is the better choice.
For y_{it}=\rho y_{i,t-1}+x_{it}'\beta+\alpha_i+\varepsilon_{it}, the within transformation subtracts the time mean, so the transformed regressor y_{i,t-1}-\bar{y}_{i,-1} contains \varepsilon_{it} through \bar{y} and the transformed error contains \varepsilon_{i,t-1}. They are correlated by construction, and Nickell (1981) showed the bias is O(1/T) and NEGATIVE. Arellano and Bond difference instead: \Delta y_{it}=\rho\Delta y_{i,t-1}+\Delta x_{it}'\beta+\Delta\varepsilon_{it} removes \alpha_i, and levels dated t-2 and earlier are valid instruments for \Delta y_{i,t-1} because E[y_{i,t-2}\Delta\varepsilon_{it}]=0. Blundell and Bond add the level equation instrumented by lagged differences, which is far more informative when \rho is near one and differences are nearly uninformative.
\Delta y_{it}=\rho\,\Delta y_{i,t-1}+\Delta \mathbf{x}_{it}^{\prime}\boldsymbol{\beta}+\Delta\varepsilon_{it},\qquad E\!\left[y_{i,t-s}\,\Delta\varepsilon_{it}\right]=0\ \ \text{for } s\ge 2
A production function for 120 firms over 10 periods. The three estimators bracket the persistence exactly as the theory says they must: pooled OLS returns 0.6317 on the lagged output term, biased UP because it absorbs the firm effect; fixed effects returns 0.0023, biased DOWN by the Nickell term of order 1/T; and Arellano-Bond two-step GMM returns 0.0355, inside the bracket. That bracket is the single most useful diagnostic in this module - an estimate outside [0.0023, 0.6317] would be the first thing to distrust, whatever its standard error said. Here the persistence is not distinguishable from zero (p = 0.60), which is itself the finding: output in this panel is driven by capital (0.3670) and labour (0.5582), not by its own past. The instruments survive their tests - AR(2) does not reject at p = 0.57, and Hansen gives p = 0.6882 on 25 degrees of freedom, comfortably short of the suspicious 1.00 that too many instruments produce.
| If you see this | It means | Do this |
|---|---|---|
| GMM estimate above pooled OLS | Outside the Bond bracket | Something is wrong. Check the instrument set |
| GMM estimate at the fixed-effects value | Too many weak instruments | Collapse the instrument matrix |
| Hansen p-value of 1.00 | Instrument proliferation, not a good fit | Reduce the instrument count and re-test |
| AR(2) rejecting | Lag 2 is not exogenous | Start instruments at lag 3 |
| Instruments outnumbering groups | Guaranteed overfitting | Collapse or limit the lag range |
| rho estimated above 1 | A unit root, or weak identification | Difference GMM is very weak here. Use system GMM |
Panel diagnostics, for whether a panel estimator is needed at all. Instrumental variables, for the identification logic without the panel structure.
Panel regression · Panel cointegration tests · Heterogeneous panel: Mean Group & PMG · Gravity model of trade · Panel diagnostics · Panel unit-root tests
Line chart · Area chart · Bar chart · Stacked bar · Scatter plot · Bubble chart · Histogram · Box plot · Pie chart · Heat map · Rebased to 100 · Lorenz curve and Gini
World map · Bivariate map · Flow map · India - state map · India - district map
Descriptive statistics · Summary by group · Two-way table · Classical statistical tests
Multiple regression (OLS) · Logit / Probit · Tobit (censored) · Truncated regression · Multinomial logit · Ordered logit / probit · Quantile regression · Poisson / Negative binomial
Time-varying coefficients (Kalman) · Unit root tests · Correlogram (ACF / PACF) · ARIMA / SARIMA · Rolling-origin cross-validation · Theta method · Unobserved components · STL forecasting · Forecast combination · Markov regime switching · Change frequency (resample) · ARCH / GARCH volatility · Decompose & filter · Spectral analysis · Exponential smoothing · Forecast accuracy
Yield curve (Nelson–Siegel / Svensson) · Dynamic factor model · Dynamic regression (ARIMAX) · Structural VAR · VAR · Granger causality · Cointegration · VECM · ARDL & bounds test
Panel regression · Panel cointegration tests · Heterogeneous panel: Mean Group & PMG · Gravity model of trade · Dynamic panel GMM · Panel diagnostics · Panel unit-root tests
Principal components (PCA) · Factor analysis · Cluster analysis
Conjoint analysis · MaxDiff (best–worst scaling) · TURF - reach of a product line · Price sensitivity (Van Westendorp) · Market basket analysis · Perceptual map · Scale reliability (Cronbach’s alpha) · Key driver analysis
Spatial autocorrelation · Spatial regression · Heckman selection · Instrumental variables (2SLS) · Difference-in-differences · Staggered difference-in-differences · Regression discontinuity · Matching & weighting · Oaxaca–Blinder decomposition
Black–Scholes option pricing · Bond price, duration & convexity · Merton distance to default · EMI / home loan planner · CAPM / beta estimation · Multi-factor model · Portfolio optimization · Value at Risk & Expected Shortfall · Performance & drawdown · Time value of money & NPV/IRR · Equity valuation (DDM, FCF, residual income) · Cost of capital (WACC) · Binomial option pricing · Option strategies (payoff & profit) · Forwards, futures & swaps · Credit risk & Basel capital · Extreme value theory (tail risk)
Life table · Life annuity · Life insurance pricing · Chain ladder reserving · Buhlmann credibility · Survival analysis · Mortality graduation · Aggregate loss model · Ruin probability · Multi-state Markov model · Loss severity fitting
Monte Carlo experiment · F-test, Wald & Chow · Structural breaks & stability
Regression vs machine learning · Ridge / Lasso / Elastic Net · Random forest · Gradient boosting
EconStatsCraft rigorous, plain-spoken econometrics
Regression, panel data, time series and the whole battery of tests. Every result is followed by a verdict you can defend.
Load a dataset to see it here.
Pick the example closest to your question. You get a spreadsheet with the right columns and a few rows showing the expected format - replace the numbers with your own, then paste or upload it back.
Copy the header row from the table above (or from the downloaded template), put your own rows underneath, and paste the whole thing here. It is checked against the layout before anything is imported.
Or click a row in the preview below.
For a units or notes row.
Search every source at once. World Bank indicators need countries and years; everything else loads in one click.
Loading the catalogue…
The engine stays loaded, so this is quick - and it leaves your open tab and panel layout alone.
⌘/Ctrl+Enter runs the current analysis. ⌘/Ctrl+P exports the session as a PDF. Esc closes this.
In the Notebook: Enter starts a new block and
Shift+Enter a new line inside one; Backspace at the start
joins back into the paragraph above; / on an empty line inserts anything.
⌘/Ctrl+B, I, E, H and
M apply bold, italic, code, highlight and maths.
#, ##, -, 1., > and
``` at the start of a line convert it.
Sign in to run unlimited analyses.
Scroll to pan · Esc to close