Академический Документы
Профессиональный Документы
Культура Документы
log: S:\ECO311\IV_Endogeneity_MrozData.smcl
log type: smcl
opened on: 17 Feb 2014, 16:53:04
Instrumented: educ
Instruments: exper expersq motheduc fatheduc
. gen rsq=e(r2)
. su rsq
. su n_rsq
. *// This is so-called "Sargan Statistic" and the degree of freedom is 1 (the extra instrument: we have two for 1 educ variable so extra 1 instrument is u
> sed
. *// The 5% critical chi-square for 1 df is 3.84
. *// Hence, we fail (do not reject) to reject the null hypothesis that instruments are valid (Null hypothesis is confirmed) as 0.378<3.84
Instrumented: educ
Instruments: exper expersq motheduc fatheduc
. estat overid
. *// This command works only if there are extra instruments! If only 1 instrument for 1 endo variable, then it does not work!
. *// As you can see the Sargan statistic is also given with a p-value of 0.5386, clearly, we fail to reject the null and hence, conclude the instruments a
> re valid (exogenous)
. *// This test has a heteroscedasticity-robust option, called the "Hansen's J statistic"..
Robust
lwage Coef. Std. Err. z P>|z| [95% Conf. Interval]
Instrumented: educ
Instruments: exper expersq motheduc fatheduc
. estat overid
Test of overidentifying restrictions:
. *// with robust option, Hansen's J statistic is 0.443461 and the p-value is in paranthesis
. *// Important note: Even if you fail to reject the null hypothesis in the test, there is a possibility that your instruments are still invalid! Provide a
> plausible story for why they should be exogenous..
. *// That is to say: If instruments pass the overidentifying test, then conduct the test of endogeneity on that variable (educ, e.g.)
Instrumented: educ
Instruments: exper expersq motheduc fatheduc
. estat endog
Tests of endogeneity
Ho: variables are exogenous
. *// The well-known "Durbin-Wu-Hausman test for endogeneity": Reject the null that educ is exogenous at 10% level of significance..
. *// with robust option, Hansen's J statistic is 0.443461 and the p-value is in paranthesis
Instrumented: educ
Instruments: exper expersq motheduc fatheduc
. gen fullsample=e(sample)
. *// Note that uhat_reduced has a coefficient which is significant at 10% so reject the null that educ is exogenous!
. log close
name: <unnamed>
log: S:\ECO311\IV_Endogeneity_MrozData.smcl
log type: smcl
closed on: 17 Feb 2014, 17:40:10