没有问题啊
. webuse hsng2
(1980 Census housing data)
. ivregress 2sls rent pcturban (hsngval = faminc i.region), small
Instrumental variables (2SLS) regression
Source | SS df MS Number of obs = 50
-------------+------------------------------ F( 2, 47) = 42.66
Model | 36677.4033 2 18338.7017 Prob > F = 0.0000
Residual | 24565.7167 47 522.674823 R-squared = 0.5989
-------------+------------------------------ Adj R-squared = 0.5818
Total | 61243.12 49 1249.85959 Root MSE = 22.862
------------------------------------------------------------------------------
rent | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
hsngval | .0022398 .0003388 6.61 0.000 .0015583 .0029213
pcturban | .081516 .3081528 0.26 0.793 -.5384074 .7014394
_cons | 120.7065 15.70688 7.68 0.000 89.10834 152.3047
------------------------------------------------------------------------------
Instrumented: hsngval
Instruments: pcturban faminc 2.region 3.region 4.region
. estat firststage
First-stage regression summary statistics
--------------------------------------------------------------------------
| Adjusted Partial
Variable | R-sq. R-sq. R-sq. F(4,44) Prob > F
-------------+------------------------------------------------------------
hsngval | 0.6908 0.6557 0.5473 13.2978 0.0000
--------------------------------------------------------------------------
Minimum eigenvalue statistic = 13.2978
Critical Values # of endogenous regressors: 1
Ho: Instruments are weak # of excluded instruments: 4
---------------------------------------------------------------------
| 5% 10% 20% 30%
2SLS relative bias | 16.85 10.27 6.71 5.34
-----------------------------------+---------------------------------
| 10% 15% 20% 25%
2SLS Size of nominal 5% Wald test | 24.58 13.96 10.26 8.31
LIML Size of nominal 5% Wald test | 5.44 3.87 3.30 2.98
---------------------------------------------------------------------
没有问题啊


雷达卡



京公网安备 11010802022788号







