Thank you for your response. When I add another lagged dependent variable to the model, the AR(2) test is satisfied. However, AR(3) AND both the Sargan and Hansen test are not satisfied.
Code:
xtdpdgmm yield_mtha L.yield_mtha L2.yield_mtha rs_gdd_s2 rs_hdd_s2 rs_precip_s2, ///
> model(diff) gmm(yield_mtha yield_dev, lag(3 .)) iv(rs_gdd_s2 rs_hdd_s2 rs_precip_s2, model(mdev)) two coll vce(r)
Generalized method of moments estimation
Fitting full model:
Step 1 f(b) = .61599272
Step 2 f(b) = .7763858
Group variable: code_muni Number of obs = 12798
Time variable: year Number of groups = 474
Moment conditions: linear = 56 Obs per group: min = 27
nonlinear = 0 avg = 27
total = 56 max = 27
(Std. Err. adjusted for 474 clusters in code_muni)
------------------------------------------------------------------------------
| WC-Robust
yield_mtha | Coef. Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
yield_mtha |
L1. | .3454116 .047806 7.23 0.000 .2517135 .4391097
L2. | .2802068 .0349527 8.02 0.000 .2117008 .3487128
|
rs_gdd_s2 | .0898764 .0793811 1.13 0.258 -.0657077 .2454606
rs_hdd_s2 | -2.144849 1.132075 -1.89 0.058 -4.363676 .073978
rs_precip_s2 | .1919315 .0210945 9.10 0.000 .1505871 .233276
_cons | .0627011 .178586 0.35 0.726 -.2873209 .4127232
------------------------------------------------------------------------------
Instruments corresponding to the linear moment conditions:
1, model(diff):
L3.yield_mtha L4.yield_mtha L5.yield_mtha L6.yield_mtha L7.yield_mtha
L8.yield_mtha L9.yield_mtha L10.yield_mtha L11.yield_mtha L12.yield_mtha
L13.yield_mtha L14.yield_mtha L15.yield_mtha L16.yield_mtha L17.yield_mtha
L18.yield_mtha L19.yield_mtha L20.yield_mtha L21.yield_mtha L22.yield_mtha
L23.yield_mtha L24.yield_mtha L25.yield_mtha L26.yield_mtha L27.yield_mtha
L28.yield_mtha L3.yield_dev L4.yield_dev L5.yield_dev L6.yield_dev
L7.yield_dev L8.yield_dev L9.yield_dev L10.yield_dev L11.yield_dev
L12.yield_dev L13.yield_dev L14.yield_dev L15.yield_dev L16.yield_dev
L17.yield_dev L18.yield_dev L19.yield_dev L20.yield_dev L21.yield_dev
L22.yield_dev L23.yield_dev L24.yield_dev L25.yield_dev L26.yield_dev
L27.yield_dev L28.yield_dev
2, model(mdev):
rs_gdd_s2 rs_hdd_s2 rs_precip_s2
3, model(level):
_cons
.
. estat serial, ar(1/3)
Arellano-Bond test for autocorrelation of the first-differenced residuals
H0: no autocorrelation of order 1: z = -8.8835 Prob > |z| = 0.0000
H0: no autocorrelation of order 2: z = 1.4192 Prob > |z| = 0.1559
H0: no autocorrelation of order 3: z = -3.3863 Prob > |z| = 0.0007
. estat overid
Sargan-Hansen test of the overidentifying restrictions
H0: overidentifying restrictions are valid
2-step moment functions, 2-step weighting matrix chi2(50) = 368.0069
Prob > chi2 = 0.0000
2-step moment functions, 3-step weighting matrix chi2(50) = 375.7389
Prob > chi2 = 0.0000
Code:
. areg yield_mtha L.yield_mtha L2.yield_mtha rs_gdd_s2 rs_hdd_s2 rs_precip_s2, absorb (code_muni) vce(cluster code_muni)
Linear regression, absorbing indicators Number of obs = 12,798
F( 5, 473) = 353.32
Prob > F = 0.0000
R-squared = 0.4831
Adj R-squared = 0.4631
Root MSE = 0.4588
(Std. Err. adjusted for 474 clusters in code_muni)
------------------------------------------------------------------------------
| Robust
yield_mtha | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
yield_mtha |
L1. | .3292273 .0200585 16.41 0.000 .2898126 .3686421
L2. | .2575985 .0157955 16.31 0.000 .2265606 .2886365
|
rs_gdd_s2 | .0939887 .0570919 1.65 0.100 -.0181964 .2061737
rs_hdd_s2 | -2.253687 .7521274 -3.00 0.003 -3.731612 -.7757632
rs_precip_s2 | .1822983 .0145616 12.52 0.000 .1536849 .2109116
_cons | .128067 .1301362 0.98 0.326 -.1276496 .3837836
-------------+----------------------------------------------------------------
code_muni | absorbed (474 categories)
Thank you for suggesting the MLE and bias-corrected estimator approach. I will look into these paper as well.
Originally posted by Sebastian Kripfganz
View Post

Leave a comment: