It worked. Thank you very much. I was making a technical mistake. It is fine now.
-
Login or Register
- Log in with
. estat overid, diff requested action not valid after most recent estimation command r(321);
Fitting full model: Step 1 f(b) = .00305113 Step 2 f(b) = .9227573
gmm(X1, lag(1 .) model(diff)) gmm(X2, lag(2 .) model(diff)) gmm(X1, diff lag(0 0) model(level)) gmm(X2, diff lag(1 1) model(level))
xtdpdgmm L(0/1).loginvest l1.tobinsq l1.streturn l1.cash l1.logta l1.age l1.lev, noserial gmm(L1.loginvest, collapse model(difference)) iv(l1.tobinsq l1.streturn l1.cash l1.logta l1.age, difference model(difference)) twostep vce(cluster co_id)
estat serial estat overid
Generalized method of moments estimation Fitting full model: Step 1: initial: f(b) = 60.63222 alternative: f(b) = 50.099668 rescale: f(b) = 4.5306529 Iteration 0: f(b) = 4.5306529 Iteration 1: f(b) = .88650032 Iteration 2: f(b) = .00834241 Iteration 3: f(b) = .00348571 Iteration 4: f(b) = .00347453 Iteration 5: f(b) = .00347453 Step 2: Iteration 0: f(b) = .00273063 Iteration 1: f(b) = .002638 Iteration 2: f(b) = .002638 Group variable: co_id Number of obs = 1717 Time variable: year Number of groups = 855 Moment conditions: linear = 9 Obs per group: min = 1 nonlinear = 1 avg = 2.008187 total = 10 max = 3 (Std. Err. adjusted for 855 clusters in co_id) ------------------------------------------------------------------------------ | WC-Robust loginvest | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- loginvest | L1. | .3550268 .1388608 2.56 0.011 .0828647 .627189 | tobinsq | L1. | -.0089324 .0571256 -0.16 0.876 -.1208965 .1030317 | streturn | L1. | .0912456 .1086676 0.84 0.401 -.1217391 .3042302 | cash | L1. | -5.99e-07 9.15e-06 -0.07 0.948 -.0000185 .0000173 | logta | L1. | .4958169 .6708675 0.74 0.460 -.8190593 1.810693 | age | L1. | -.2694499 .0745122 -3.62 0.000 -.4154912 -.1234086 | lev | L1. | -20.92443 9.509304 -2.20 0.028 -39.56233 -2.286541 | _cons | 11.72433 4.518156 2.59 0.009 2.86891 20.57976 ------------------------------------------------------------------------------ Instruments corresponding to the linear moment conditions: 1, model(diff): L1.L.loginvest L2.L.loginvest L3.L.loginvest 2, model(diff): D.L.tobinsq D.L.streturn D.L.cash D.L.logta D.L.age 3, model(level): _cons . . estat serial Arellano-Bond test for autocorrelation of the first-differenced residuals H0: no autocorrelation of order 1: z = -3.2873 Prob > |z| = 0.0010 H0: no autocorrelation of order 2: z = . Prob > |z| = . . estat overid Sargan-Hansen test of the overidentifying restrictions H0: overidentifying restrictions are valid 2-step moment functions, 2-step weighting matrix chi2(2) = 2.2555 Prob > chi2 = 0.3238 2-step moment functions, 3-step weighting matrix chi2(2) = 2.2374 Prob > chi2 = 0.3267
xtdpdgmm L(0/1).(depression_score) income income_lag self_efficacy, model(fodev) collapse gmm(depression_score, l(1 3)) gmm(income, l(0 2)) gmm(income_lag, l(0 2)) gmm(self_efficacy, l(0 2) m(mdev)) gmm(income income_lag, lag(0 0) diff model(level)) teffects two vce(r) overid nocons
estat overid, diff Sargan-Hansen (difference) test of the overidentifying restrictions H0: (additional) overidentifying restrictions are valid 2-step weighting matrix from full model | Excluding | Difference Moment conditions | chi2 df p | chi2 df p ------------------+-----------------------------+----------------------------- 1, model(fodev) | 8.3313 7 0.3043 | 1.8420 3 0.6058 2, model(fodev) | 7.9503 7 0.3370 | 2.2230 3 0.5274 3, model(fodev) | 8.2779 7 0.3087 | 1.8954 3 0.5944 4, model(mdev) | 4.4378 7 0.7282 | 5.7355 3 0.1252 5, model(level) | 8.1528 8 0.4187 | 2.0205 2 0.3641 6, model(level) | . -6 . | . . . model(fodev) | 0.6462 1 0.4215 | 9.5270 9 0.3901 model(level) | . -8 . | . . .
gmm(X1, lag(1 .) model(diff)) gmm(X2, lag(2 .) model(diff)) gmm(X1, diff lag(0 0) model(level)) gmm(X2, diff lag(1 1) model(level))
Comment