Hi,
I would like to ask a question regarding my regression. First, my regression is: y=a0+a1x1+a2x2+a4x4+a5x5+a6x6+a7x8+a8d; among these different regressors x2 is suspect as endogeneous, and z3 is IV for x2 (not weak instrument). To test for endogeneity, I run two different test for endogeneity: 1. Hausman Test 2. Regression based test. The code is following:
1. Hausmant test
The results fail to reject the null implying we have no endogeneity
Test: Ho: difference in coefficients no
> t systematic
chi2(8) = (b-B)'[(V_b-V_B)^
> (-1)](b-B)
= 6.31
Prob>chi2 = 0.6129
2: Regression based test:
The results clearly show that we have an endogeneity problem (uhat is significant):
. reg y x1 x2 x4 x5 x6 i.x8 i.d uhat
Source SS df MS Number of obs = 322
F(10, 311) = 10.25
Model 56.6758454 10 5.66758454 Prob > F = 0.0000
Residual 171.981689 311 .552995784 R-squared = 0.2479
Adj R-squared = 0.2237
Total 228.657534 321 .712328767 Root MSE = .74364
y Coef. Std. Err. t P>t [95% Conf. Interval]
x1 -.0057789 .0758074 -0.08 0.939 -.1549391 .1433812
x2 .0981171 .0168363 5.83 0.000 .0649896 .1312446
x4 -1.55e-07 2.85e-06 -0.05 0.957 -5.76e-06 5.45e-06
x5 .0000413 .0002984 0.14 0.890 -.0005458 .0006284
x6 .0001767 .0010991 0.16 0.872 -.0019859 .0023393
x8
1 -.0845744 .172997 -0.49 0.625 -.4249669 .255818
2 -.185302 .1184647 -1.56 0.119 -.4183955 .0477916
3 .1617911 .1208343 1.34 0.182 -.075965 .3995472
1.d .0428701 .0952056 0.45 0.653 -.1444583 .2301986
uhat -.0366868 .0183065 -2.00 0.046 -.0727071 -.0006665
_cons 8.890939 1.339391 6.64 0.000 6.255525 11.52635
. test uhat
( 1) uhat = 0
F( 1, 311) = 4.02
Prob > F = 0.0459
Can anyone help me for this problem?
Thank you in advance.
I would like to ask a question regarding my regression. First, my regression is: y=a0+a1x1+a2x2+a4x4+a5x5+a6x6+a7x8+a8d; among these different regressors x2 is suspect as endogeneous, and z3 is IV for x2 (not weak instrument). To test for endogeneity, I run two different test for endogeneity: 1. Hausman Test 2. Regression based test. The code is following:
1. Hausmant test
Code:
ivregress 2sls y x1 x4 x5 x6 i.x8 i.d (x2= z3),first est store IV reg y x1 x2 x4 x5 x6 i.d i.x8 est store ols hausman IV ols,equations(1:1)
Test: Ho: difference in coefficients no
> t systematic
chi2(8) = (b-B)'[(V_b-V_B)^
> (-1)](b-B)
= 6.31
Prob>chi2 = 0.6129
2: Regression based test:
Code:
reg x2 x1 x4 x5 x6 i.d i.x8 z3 predict resd, resid reg y x1 x2 x4 x5 x6 x7 i.d i.x8 resd //res is significant implying y2 is endogeneous, then we should use IV drop res
. reg y x1 x2 x4 x5 x6 i.x8 i.d uhat
Source SS df MS Number of obs = 322
F(10, 311) = 10.25
Model 56.6758454 10 5.66758454 Prob > F = 0.0000
Residual 171.981689 311 .552995784 R-squared = 0.2479
Adj R-squared = 0.2237
Total 228.657534 321 .712328767 Root MSE = .74364
y Coef. Std. Err. t P>t [95% Conf. Interval]
x1 -.0057789 .0758074 -0.08 0.939 -.1549391 .1433812
x2 .0981171 .0168363 5.83 0.000 .0649896 .1312446
x4 -1.55e-07 2.85e-06 -0.05 0.957 -5.76e-06 5.45e-06
x5 .0000413 .0002984 0.14 0.890 -.0005458 .0006284
x6 .0001767 .0010991 0.16 0.872 -.0019859 .0023393
x8
1 -.0845744 .172997 -0.49 0.625 -.4249669 .255818
2 -.185302 .1184647 -1.56 0.119 -.4183955 .0477916
3 .1617911 .1208343 1.34 0.182 -.075965 .3995472
1.d .0428701 .0952056 0.45 0.653 -.1444583 .2301986
uhat -.0366868 .0183065 -2.00 0.046 -.0727071 -.0006665
_cons 8.890939 1.339391 6.64 0.000 6.255525 11.52635
. test uhat
( 1) uhat = 0
F( 1, 311) = 4.02
Prob > F = 0.0459
Can anyone help me for this problem?
Thank you in advance.
Comment