Dear All,
suppose that I estimate the following model:
I would like to run some tests on the first stage of the above regression. I tried to retrieve the results of the first stage, but I was not successful. I also tried to estimate the first stage separetely:
However, as you can see the results are different. Is there any way I can store the results from the first stage, so I can run my tests?
Thanks in advance
Dario
suppose that I estimate the following model:
Code:
webuse nlswork, clear
xtivreg ln_w age c.age#c.age not_smsa (tenure = union south), first
First-stage G2SLS regression
Number of obs = 19,007
Wald chi(5) = 4789
Prob > chi2 = 0.0000
------------------------------------------------------------------------------
tenure | Coefficient Std. err. z P>|z| [95% conf. interval]
-------------+----------------------------------------------------------------
age | .1357715 .0352866 3.85 0.000 .0666109 .204932
|
c.age#c.age | .0021357 .0005639 3.79 0.000 .0010305 .003241
|
not_smsa | -.0178559 .0719943 -0.25 0.804 -.1589621 .1232504
union | 1.032321 .0646406 15.97 0.000 .905628 1.159015
south | -.1311183 .0672238 -1.95 0.051 -.2628745 .0006379
_cons | -3.02552 .5391171 -5.61 0.000 -4.08217 -1.96887
------------------------------------------------------------------------------
G2SLS random-effects IV regression Number of obs = 19,007
Group variable: idcode Number of groups = 4,134
R-squared: Obs per group:
Within = 0.0620 min = 1
Between = 0.1745 avg = 4.6
Overall = 0.1206 max = 12
Wald chi2(4) = 941.52
corr(u_i, X) = 0 (assumed) Prob > chi2 = 0.0000
------------------------------------------------------------------------------
ln_wage | Coefficient Std. err. z P>|z| [95% conf. interval]
-------------+----------------------------------------------------------------
tenure | .1772948 .0111724 15.87 0.000 .1553972 .1991924
age | .0191674 .0066388 2.89 0.004 .0061555 .0321792
|
c.age#c.age | -.0008496 .0001057 -8.04 0.000 -.0010567 -.0006425
|
not_smsa | -.2119932 .0130456 -16.25 0.000 -.2375622 -.1864243
_cons | 1.42761 .1037797 13.76 0.000 1.224205 1.631014
-------------+----------------------------------------------------------------
sigma_u | .33156584
sigma_e | .63029359
rho | .21674808 (fraction of variance due to u_i)
------------------------------------------------------------------------------
Instrumented: tenure
Instruments: age c.age#c.age not_smsa union south
r; t=0.69 16:59:36
Code:
xtreg tenure union south c.age#c.age not_smsa
Random-effects GLS regression Number of obs = 19,007
Group variable: idcode Number of groups = 4,134
R-squared: Obs per group:
Within = 0.2995 min = 1
Between = 0.0664 avg = 4.6
Overall = 0.1359 max = 12
Wald chi2(4) = 6079.99
corr(u_i, X) = 0 (assumed) Prob > chi2 = 0.0000
------------------------------------------------------------------------------
tenure | Coefficient Std. err. z P>|z| [95% conf. interval]
-------------+----------------------------------------------------------------
union | .7508115 .0637996 11.77 0.000 .6257666 .8758563
south | -.175319 .0792501 -2.21 0.027 -.3306463 -.0199916
|
c.age#c.age | .0047126 .0000614 76.73 0.000 .0045922 .004833
|
not_smsa | -.1149192 .0828114 -1.39 0.165 -.2772265 .0473881
_cons | -1.448476 .0860632 -16.83 0.000 -1.617156 -1.279795
-------------+----------------------------------------------------------------
sigma_u | 2.4452824
sigma_e | 2.5874158
rho | .47178051 (fraction of variance due to u_i)
------------------------------------------------------------------------------
r; t=0.43 17:02:32
.
Thanks in advance
Dario

Comment