I tried to check my Two-sys-GMM model with the diagnostic checks you posted in #367. My GMM type variables are Y, X2, X3, X5 and their lags' range is set from one to three. The standard type instrumental variables are first, second, and third lags of X1, X4, and X6.
I have the following outcome. The P-values of estat overid are significant, showing that my model is misspecified. Also, the Hausman test shows that I have cross-sectional dependence. What would you recommend to solve the two problems?
. xtdpdgmm L(0/1).Y X1 X2 X3 X4 X5 X6, model(diff) collapse gmm(Y X2 X3 X5, lag(1 3)) gmm(X1 X4 X6, lag(1 3)) gmm(Y X2 X3 X5, lag(1 1) diff model(level)) gmm(X1 X4 X6, lag (0 0) diff model (level)) two vce(r) overid
Generalized method of moments estimation
Fitting full model:
Step 1 f(b) = .01275011
Step 2 f(b) = .94657417
Fitting reduced model 1:
Step 1 f(b) = .77326433
Fitting reduced model 2:
Step 1 f(b) = .84751107
Fitting reduced model 3:
Step 1 f(b) = .86874136
Fitting reduced model 4:
Step 1 f(b) = .89973548
Fitting no-diff model:
Step 1 f(b) = 2.604e-09
Fitting no-level model:
Step 1 f(b) = .78165801
Group variable: iso_num Number of obs = 336
Time variable: year Number of groups = 28
Moment conditions: linear = 29 Obs per group: min = 12
nonlinear = 0 avg = 12
total = 29 max = 12
(Std. Err. adjusted for 28 clusters in iso_num)
| WC-Robust | ||||||
| Y | Coef. | Std. Err. | z | P>z | [95% Conf. | Interval] |
| Y | ||||||
| L1. | .7967178 | .0652365 | 12.21 | 0.000 | .6688566 | .924579 |
| X1 | -.1074083 | .0301788 | -3.56 | 0.000 | -.1665576 | -.048259 |
| X2 | .0900069 | .0329441 | 2.73 | 0.006 | .0254376 | .1545763 |
| X3 | -.0131671 | .0110706 | -1.19 | 0.234 | -.034865 | .0085307 |
| X4 | .226282 | .0839039 | 2.70 | 0.007 | .0618333 | .3907307 |
| X5 | -.0476106 | .0942898 | -0.50 | 0.614 | -.2324151 | .1371939 |
| X6 | -.1638557 | .0978363 | -1.67 | 0.094 | -.3556113 | .0278999 |
| _cons | -2.162016 | .5205269 | -4.15 | 0.000 | -3.18223 | -1.141802 |
1, model(diff):
L1.Y L2.Y L3.Y L1.X2 L2.X2 L3.X2 L1.X3 L2.X3 L3.X3 L1.X5 L2.X5 L3.X5
2, model(diff):
L1.X1 L2.X1 L3.X1 L1.X4 L2.X4 L3.X4 L1.X6 L2.X6 L3.X6
3, model(level):
L1.D.Y L1.D.X2 L1.D.X3 L1.D.X5
4, model(level):
D.X1 D.X4 D.X6
5, model(level):
_cons
. estat overid, difference
Sargan-Hansen (difference) test of the overidentifying restrictions
H0: (additional) overidentifying restrictions are valid
2-step weighting matrix from full model
| Excluding | Difference
| Excluding | Difference | |||||
| Moment conditions | chi2 | df | p | chi2 | df | p |
| 1, model(diff) | 21.6514 | 9 | 0.0101 | 4.8527 | 12 | 0.9627 |
| 2, model(diff) | 23.7303 | 12 | 0.0221 | 2.7738 | 9 | 0.9726 |
| 3, model(level) | 24.3248 | 17 | 0.1109 | 2.1793 | 4 | 0.7028 |
| 4, model(level) | 25.1926 | 18 | 0.1197 | 1.3115 | 3 | 0.7264 |
| model(diff) | 0.0000 | 0 | . | 26.5041 | 21 | 0.1879 |
| model(level) | 21.8864 | 14 | 0.0810 | 4.6177 | 7 | 0.7065 |
. xtdpdgmm L(0/1).Y X1 X2 X3 X4 X5 X6, model(diff) collapse gmm(X1 X4 X6, lag(1 3)) gmm(X1 X4 X6, lag(0 0) diff model (level)) two vce(r)
Generalized method of moments estimation
Fitting full model:
Step 1 f(b) = .0013473
Step 2 f(b) = .35246126
Group variable: iso_num Number of obs = 336
Time variable: year Number of groups = 28
Moment conditions: linear = 13 Obs per group: min = 12
nonlinear = 0 avg = 12
total = 13 max = 12
(Std. Err. adjusted for 28 clusters in iso_num)
| WC-Robust | ||||||
| Y | Coef. | Std. Err. | z | P>z | [95% Conf. | Interval] |
| Y | ||||||
| L1. | .6915241 | .3140208 | 2.20 | 0.028 | .0760547 | 1.306994 |
| X1 | -.0796047 | .0434806 | -1.83 | 0.067 | -.1648251 | .0056158 |
| X2 | .1766118 | .1830601 | 0.96 | 0.335 | -.1821794 | .535403 |
| X3 | .0940592 | .0302717 | 3.11 | 0.002 | .0347278 | .1533906 |
| X4 | .1856448 | .1214403 | 1.53 | 0.126 | -.0523739 | .4236635 |
| X5 | -.0955597 | .1559156 | -0.61 | 0.540 | -.4011488 | .2100293 |
| X6 | -.1655075 | .653214 | -0.25 | 0.800 | -1.445784 | 1.114769 |
| _cons | -2.94722 | 2.484702 | -1.19 | 0.236 | -7.817146 | 1.922706 |
1, model(diff):
L1.X1 L2.X1 L3.X1 L1.X4 L2.X4 L3.X4 L1.X6 L2.X6 L3.X6
2, model(level):
D.X1 D.X4 D.X6
3, model(level):
_cons
. estat overid
Sargan-Hansen test of the overidentifying restrictions
H0: overidentifying restrictions are valid
2-step moment functions, 2-step weighting matrix chi2(5) = 9.8689
Prob > chi2 = 0.0790
2-step moment functions, 3-step weighting matrix chi2(5) = 14.9084
Prob > chi2 = 0.0108
. estat overid full
Sargan-Hansen difference test of the overidentifying restrictions
H0: additional overidentifying restrictions are valid
2-step moment functions, 2-step weighting matrix chi2(16) = 16.6352
Prob > chi2 = 0.4096
2-step moment functions, 3-step weighting matrix chi2(16) = 13.0916
Prob > chi2 = 0.6661
. estat hausman full
Generalized Hausman test chi2(7) = 30.3760
H0: coefficients do not systematically differ Prob > chi2 = 0.0001

Leave a comment: