Thank you so much for your help, Sebastian, when I tried what you suggested the number of instruments in both models do match. The coefficients still differ a little bit, as do the standard errors. I have copied the output below, first for the xtabond2 model, and then for the one using xtseqreg:
Am I missing out on specifying something else as well?
Thank you for your help, again!
Suchita
Code:
. xtabond2 lnlabprod_v3 capprod rawprod npprod dummy maxprod i.Year if (q13a ==1 & q11a == 0 & industry_same ==1), gmm (l > nlabprod_v3 capprod rawprod npprod dummy maxprod, lag(2 2) eq(level)) gmm (lnlabprod_v3 capprod rawprod npprod dummy ma > xprod, lag(2 2) eq(diff)) iv(i.Year i.q17a, eq(level)) iv(i.q17a, eq(diff)) robust twostep Favoring speed over space. To switch, type or click on mata: mata set matafavor space, perm. Warning: Two-step estimated covariance matrix of moments is singular. Using a generalized inverse to calculate optimal weighting matrix for two-step estimation. Difference-in-Sargan/Hansen statistics may be negative. Dynamic panel-data estimation, two-step system GMM ------------------------------------------------------------------------------ Group variable: q1 Number of obs = 5612 Time variable : time Number of groups = 2982 Number of instruments = 44 Obs per group: min = 1 Wald chi2(8) = 16799.40 avg = 1.88 Prob > chi2 = 0.000 max = 3 ------------------------------------------------------------------------------ | Corrected lnlabprod_v3 | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- capprod | .1737902 .068021 2.55 0.011 .0404714 .307109 rawprod | .0695543 .0560353 1.24 0.215 -.0402729 .1793815 npprod | .2612364 .1383583 1.89 0.059 -.0099408 .5324136 dummy | 3.12106 1.320894 2.36 0.018 .5321542 5.709965 maxprod | .4540816 .180837 2.51 0.012 .0996476 .8085157 | Year | 2011 | 0 (empty) 2013 | -4.680937 .047691 -98.15 0.000 -4.774409 -4.587464 2015 | -4.759981 .054865 -86.76 0.000 -4.867515 -4.652448 | _cons | 10.94667 1.147688 9.54 0.000 8.697245 13.1961 ------------------------------------------------------------------------------ Instruments for first differences equation Standard D.(0b.q17a 1.q17a 2.q17a 3.q17a 4.q17a 5.q17a 6.q17a 7.q17a 8.q17a 9.q17a 10.q17a 11.q17a 12.q17a 13.q17a 14.q17a 15.q17a 16.q17a 17.q17a 18.q17a 19.q17a 20.q17a) GMM-type (missing=0, separate instruments for each period unless collapsed) L2.(lnlabprod_v3 capprod rawprod npprod dummy maxprod) Instruments for levels equation Standard 2011b.Year 2013.Year 2015.Year 0b.q17a 1.q17a 2.q17a 3.q17a 4.q17a 5.q17a 6.q17a 7.q17a 8.q17a 9.q17a 10.q17a 11.q17a 12.q17a 13.q17a 14.q17a 15.q17a 16.q17a 17.q17a 18.q17a 19.q17a 20.q17a _cons GMM-type (missing=0, separate instruments for each period unless collapsed) DL2.(lnlabprod_v3 capprod rawprod npprod dummy maxprod) ------------------------------------------------------------------------------ Arellano-Bond test for AR(1) in first differences: z = -5.90 Pr > z = 0.000 Arellano-Bond test for AR(2) in first differences: z = . Pr > z = . ------------------------------------------------------------------------------ Sargan test of overid. restrictions: chi2(35) = 75.26 Prob > chi2 = 0.000 (Not robust, but not weakened by many instruments.) Hansen test of overid. restrictions: chi2(35) = 38.54 Prob > chi2 = 0.312 (Robust, but weakened by many instruments.) Difference-in-Hansen tests of exogeneity of instrument subsets: gmm(lnlabprod_v3 capprod rawprod npprod dummy maxprod, eq(diff) lag(2 2)) Hansen test excluding group: chi2(29) = 30.33 Prob > chi2 = 0.397 Difference (null H = exogenous): chi2(6) = 8.21 Prob > chi2 = 0.223 iv(2011b.Year 2013.Year 2015.Year 0b.q17a 1.q17a 2.q17a 3.q17a 4.q17a 5.q17a 6.q17a 7.q17a 8.q17a 9.q17a 10.q17a 11.q17 > a 12.q17a 13.q17a 14.q17a 15.q17a 16.q17a 17.q17a 18.q17a 19.q17a 20.q17a, eq(level)) Hansen test excluding group: chi2(16) = 10.85 Prob > chi2 = 0.818 Difference (null H = exogenous): chi2(19) = 27.69 Prob > chi2 = 0.090 iv(0b.q17a 1.q17a 2.q17a 3.q17a 4.q17a 5.q17a 6.q17a 7.q17a 8.q17a 9.q17a 10.q17a 11.q17a 12.q17a 13.q17a 14.q17a 15.q1 > 7a 16.q17a 17.q17a 18.q17a 19.q17a 20.q17a, eq(diff)) Hansen test excluding group: chi2(17) = 23.73 Prob > chi2 = 0.127 Difference (null H = exogenous): chi2(18) = 14.81 Prob > chi2 = 0.675
Code:
. xi: xtseqreg lnlabprod_v3 capprod rawprod npprod dummy maxprod if (q13a == 1 & q11a == 0 & industry_same ==1), gmmiv (lnlabprod_v3 > capprod rawprod npprod dummy maxprod, difference lag (2 2) model(level)) gmmiv (lnlabprod_v3 capprod rawprod npprod dummy maxprod, > lag (2 2) model(diff)) iv(i.Year i.q17a, model(level)) iv(i.q17a, difference model(diff)) teffects vce(robust) twostep i.Year _IYear_2011-2015 (naturally coded; _IYear_2011 omitted) i.q17a _Iq17a_0-20 (naturally coded; _Iq17a_0 omitted) Group variable: q1 Number of obs = 5612 Time variable: time Number of groups = 2982 Obs per group: min = 1 avg = 1.881958 max = 3 Number of instruments = 44 (Std. Err. adjusted for clustering on q1) ------------------------------------------------------------------------------ | WC-Robust lnlabprod_v3 | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- capprod | .1741671 .0782445 2.23 0.026 .0208108 .3275235 rawprod | .0798184 .0682943 1.17 0.243 -.0540359 .2136727 npprod | .2987752 .1829994 1.63 0.103 -.059897 .6574473 dummy | 2.759078 1.883417 1.46 0.143 -.9323524 6.450508 maxprod | .4073506 .2404929 1.69 0.090 -.0640069 .8787081 | time | 2 | -4.669761 .0486313 -96.02 0.000 -4.765077 -4.574445 3 | -4.751412 .0601527 -78.99 0.000 -4.869309 -4.633514 | _cons | 11.26951 1.337084 8.43 0.000 8.648873 13.89015 ------------------------------------------------------------------------------
Thank you for your help, again!
Suchita
Comment