Originally posted by Chhavi Jatana
View Post
-
Login or Register
- Log in with
net install xtdpdgmm, from(http://www.kripfganz.de/stata/) replace
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(2 2) eq(d) collapse) gmm (dec_apu, lag(1 1) eq(l) collapse) iv(hmcvi subnormal inadpf, eq(d)) iv(hmcvi subnormal inadpf, eq(l)) twostep robust
xtdpdgmm pntbt L.pntbt hmcvi subnormal inadpf dec_apu, gmmiv(L.pntbt, lag(1 1) m(d) collapse) gmmiv(L.pntbt, lag(1 1) m(l) collapse) gmmiv(dec_apu, lag(1 1) m(d) collapse) gmmiv(dec_apu, lag(0 0) m(l) collapse) iv(hmcvi subnormal inadpf, m(d)) iv(hmcvi subnormal inadpf, m(l) diff) twostep vce(r)
xtabond2 ..., ... iv(hmcvi subnormal inadpf, eq(d) passthru)
xtdpdgmm ..., ... iv(hmcvi subnormal inadpf, m(d))
xtabond2 ..., ... iv(hmcvi subnormal inadpf, eq(d))
xtdpdgmm ..., ... iv(hmcvi subnormal inadpf, m(d) diff)
xtabond2 ..., ... iv(D.hmcvi D.subnormal D.inadpf, eq(l)) xtdpdgmm ..., ... iv(hmcvi subnormal inadpf, m(l) diff)
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(2 2) 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
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) g > mm (dec_apu, lag(2 2) eq(d) collapse) gmm (dec_apu, lag(1 1) eq(l) collapse) iv(hmcvi subnormal inadpf, eq(d) mz) iv(hmcvi subnormal i > nadpf, eq(l) mz) twostep robust Favoring space over speed. To switch, type or click on mata: mata set matafavor speed, perm. Dynamic panel-data estimation, two-step system GMM ------------------------------------------------------------------------------ Group variable: id Number of obs = 423 Time variable : ano Number of groups = 33 Number of instruments = 11 Obs per group: min = 9 Wald chi2(5) = 1161.71 avg = 12.82 Prob > chi2 = 0.000 max = 13 ------------------------------------------------------------------------------ | Corrected pntbt | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- pntbt | L1. | .7842838 .0743589 10.55 0.000 .6385431 .9300246 | hmcvi | .0003996 .0003474 1.15 0.250 -.0002814 .0010805 subnormal | .2959394 .1958883 1.51 0.131 -.0879946 .6798734 inadpf | .8593435 .2568274 3.35 0.001 .3559712 1.362716 dec_apu | .0012405 .0009055 1.37 0.171 -.0005343 .0030152 _cons | -.0543653 .0160513 -3.39 0.001 -.0858253 -.0229053 ------------------------------------------------------------------------------ Instruments for first differences equation Standard D.(hmcvi subnormal inadpf), missing recoded as zero GMM-type (missing=0, separate instruments for each period unless collapsed) L2.dec_apu collapsed L2.L.pntbt collapsed Instruments for levels equation Standard hmcvi subnormal inadpf, missing recoded as zero _cons GMM-type (missing=0, separate instruments for each period unless collapsed) DL.dec_apu collapsed DL2.L.pntbt collapsed ------------------------------------------------------------------------------ Arellano-Bond test for AR(1) in first differences: z = -2.44 Pr > z = 0.015 Arellano-Bond test for AR(2) in first differences: z = 1.56 Pr > z = 0.118 ------------------------------------------------------------------------------ Sargan test of overid. restrictions: chi2(5) = 5.62 Prob > chi2 = 0.345 (Not robust, but not weakened by many instruments.) Hansen test of overid. restrictions: chi2(5) = 5.95 Prob > chi2 = 0.311 (Robust, but weakened by many instruments.) Difference-in-Hansen tests of exogeneity of instrument subsets: GMM instruments for levels Hansen test excluding group: chi2(3) = 2.39 Prob > chi2 = 0.496 Difference (null H = exogenous): chi2(2) = 3.56 Prob > chi2 = 0.168 gmm(L.pntbt, collapse eq(diff) lag(2 2)) Hansen test excluding group: chi2(4) = 3.05 Prob > chi2 = 0.550 Difference (null H = exogenous): chi2(1) = 2.90 Prob > chi2 = 0.089 gmm(L.pntbt, collapse eq(level) lag(2 2)) Hansen test excluding group: chi2(4) = 5.03 Prob > chi2 = 0.284 Difference (null H = exogenous): chi2(1) = 0.92 Prob > chi2 = 0.339 gmm(dec_apu, collapse eq(diff) lag(2 2)) Hansen test excluding group: chi2(4) = 2.64 Prob > chi2 = 0.619 Difference (null H = exogenous): chi2(1) = 3.30 Prob > chi2 = 0.069 gmm(dec_apu, collapse eq(level) lag(1 1)) Hansen test excluding group: chi2(4) = 4.48 Prob > chi2 = 0.345 Difference (null H = exogenous): chi2(1) = 1.47 Prob > chi2 = 0.226 iv(hmcvi subnormal inadpf, mz eq(diff)) Hansen test excluding group: chi2(2) = 3.01 Prob > chi2 = 0.222 Difference (null H = exogenous): chi2(3) = 2.94 Prob > chi2 = 0.400 iv(hmcvi subnormal inadpf, mz eq(level)) Hansen test excluding group: chi2(2) = 0.15 Prob > chi2 = 0.928 Difference (null H = exogenous): chi2(3) = 5.80 Prob > chi2 = 0.122
xtdpdgmm pntbt L.pntbt hmcvi subnormal inadpf dec_apu, gmmiv(L.pntbt, lag(1 1) m(d) collapse) gmmiv(L.pntbt, lag(1 1) m(l) collapse) gmmiv(dec_apu, lag(1 1) m(d) collapse) gmmiv(dec_apu, lag(0 0) m(l) collapse) iv(hmcvi subnormal inadpf, m(d) diff) iv(hmcvi subnormal inadpf, m(l)) twostep vce(r)
xtdpdgmm pntbt L.pntbt hmcvi subnormal inadpf dec_apu, gmmiv(L.pntbt, lag(1 1) m(d) collapse) gmmiv(L.pntbt, lag(1 1) m(l) collapse) g > mmiv(dec_apu, lag(1 1) m(d) collapse) gmmiv(dec_apu, lag(0 0) m(l) collapse) iv(hmcvi subnormal inadpf, m(d) diff) iv(hmcvi subnormal > inadpf, m(l)) twostep vce(r) Generalized method of moments estimation Fitting full model: Step 1 f(b) = .00043768 Step 2 f(b) = .26082684 Group variable: id Number of obs = 423 Time variable: ano Number of groups = 33 Moment conditions: linear = 11 Obs per group: min = 9 nonlinear = 0 avg = 12.81818 total = 11 max = 13 (Std. Err. adjusted for 33 clusters in id) ------------------------------------------------------------------------------ | WC-Robust pntbt | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- pntbt | L1. | .9087191 .0147842 61.47 0.000 .8797425 .9376956 | hmcvi | .0001282 .0001377 0.93 0.352 -.0001418 .0003982 subnormal | .0723061 .0550229 1.31 0.189 -.0355368 .180149 inadpf | .5317917 .232069 2.29 0.022 .0769449 .9866385 dec_apu | .0006042 .0002017 3.00 0.003 .0002089 .0009995 _cons | -.0287216 .0094184 -3.05 0.002 -.0471813 -.0102618 ------------------------------------------------------------------------------ Instruments corresponding to the linear moment conditions: 1, model(diff): L1.L.pntbt 2, model(level): L1.L.pntbt 3, model(diff): L1.dec_apu 4, model(level): dec_apu 5, model(diff): D.hmcvi D.subnormal D.inadpf 6, model(level): hmcvi subnormal inadpf 7, model(level): _cons
xtabond2 ..., gmm(L.pntbt, lag(1 1) eq(d) collapse) ...
xtdpdgmm ..., gmmiv(L.pntbt, lag(1 1) m(d) collapse) ...
estat serial
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
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)
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
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
xtdpdgmm Cash L.Cash Size Leverage Liquidity Profitability, teffects twostep vce(cluster CompanyID) gmmiv(L.Cash, lag(0 1) model(fodev)) gmmiv(Leverage Liquidity Profitability, lag(1 6) collapse model(fodev)) iv(Size, model(level)) nofootnote
xtdpdgmm CashHoldings1 Size1 Leverage1 Liquidity1 Profitability4, twostep vce(cluster CompanyID) gmmiv(Leverage1 Liquidity1 Profitability4, lag(1 16) collapse model(l)) iv(Size1, model(level)) nofootnote
lagrange () invalid -- invalid numlist has elements outside of allowed range
Comment