Thank so much for your help. I achieved the same results with both commands:
Xtabond2:
Code:
xtabond2 pntbt L.pntbt hmcvi subnormal inadpf dec_apu, gmm (L.pntbt, lag(2 2) eq(d) collapse) gmm (L.pntbt, lag(2 2) eq(l) collapse) gmm (dec_apu, lag(1 1) eq(d) collapse) gmm (dec_apu, lag(1 1) eq(l) collapse) iv(hmcvi subnormal inadpf, eq(d) mz) iv(hmcvi subnormal inadpf, eq(l) mz) twostep robust
Code:
xtdpdgmm pntbt L.pntbt hmcvi subnormal inadpf dec_apu, gmmiv(L.pntbt, lag(2 2) m(d) collapse) gmmiv(L.pntbt, lag(2 2) m(l) diff collapse) gmmiv(dec_apu, lag(1 1) m(d) collapse) gmmiv(dec_apu, lag(1 1) m(l) diff collapse) iv(hmcvi subnormal inadpf, m(d) diff) iv(hmcvi subnormal inadpf, m(l)) twostep vce(r)
Code:
estat serial Arellano-Bond test for autocorrelation of the first-differenced residuals H0: no autocorrelation of order 1: z = -2.2844 Prob > |z| = 0.0223 H0: no autocorrelation of order 2: z = 1.5033 Prob > |z| = 0.1328
Code:
estat overid
Sargan-Hansen test of the overidentifying restrictions
H0: overidentifying restrictions are valid
2-step moment functions, 2-step weighting matrix chi2(5) = 5.2986
Prob > chi2 = 0.3805
2-step moment functions, 3-step weighting matrix chi2(5) = 5.5599
Prob > chi2 = 0.3514
Then the results in the first test means the absence of the second-order serial correlation in disturbances. And the results with Hansen test means that there is not problem of overidentifying restrictions. Is it right?
Which is the most appropriate test of overindetifying restrictions to show in the results, 2-step weighting matrix or 3-step weighting matrix?
Once again, thank very much!

Leave a comment: