Dear all,
I'm a bit desperate here but could anyone help, please? I want to test whether or not a variable should be treated as endogenous or not when using xtabond2. In both situations when this variable is treated as exogenous in model 1 and endogenous in model 2, AR(1) is significant while AR(2) is insignificant; and Sargan and Hansen tests in both models show instruments are valid. Here is how I tested the endogeneity of this variable, could anyone tell me if this is right or wrong and correct me, please? Thank you very much.
/* Model 1: treat X1 as exogenous */
xi: xtabond2 y l.y X1 X2 X3, gmm(y, lag(5 6)) iv(X1 X2 X3 ) twostep nol nom artests(3)
/* obtain Hansen test of overid restrictions chi2() statistics: S0 */
/* Model 2: treat X1 as endogenous */
xi: xtabond2 y l.y X1 X2 X3, gmm(y X1, lag(5 6)) iv(X2 X3 ) twostep nol nom artests(3)
/* obtain Hansen test of overid restrictions chi2() statistics: S1 */
The endogeneity test is a test of S0-S1 (or should this be S1-S0 I'm not entirely sure); The test statistic (S0-S1 or S1-S0) should be distributed as chi-square in the number of regressors being tested for endogeneity, so I'm testing 1 variable as endogenous or not, the dof should be 1. Does this method looks correct? Many thanks. Best wishes, Meng
I'm a bit desperate here but could anyone help, please? I want to test whether or not a variable should be treated as endogenous or not when using xtabond2. In both situations when this variable is treated as exogenous in model 1 and endogenous in model 2, AR(1) is significant while AR(2) is insignificant; and Sargan and Hansen tests in both models show instruments are valid. Here is how I tested the endogeneity of this variable, could anyone tell me if this is right or wrong and correct me, please? Thank you very much.
/* Model 1: treat X1 as exogenous */
xi: xtabond2 y l.y X1 X2 X3, gmm(y, lag(5 6)) iv(X1 X2 X3 ) twostep nol nom artests(3)
/* obtain Hansen test of overid restrictions chi2() statistics: S0 */
/* Model 2: treat X1 as endogenous */
xi: xtabond2 y l.y X1 X2 X3, gmm(y X1, lag(5 6)) iv(X2 X3 ) twostep nol nom artests(3)
/* obtain Hansen test of overid restrictions chi2() statistics: S1 */
The endogeneity test is a test of S0-S1 (or should this be S1-S0 I'm not entirely sure); The test statistic (S0-S1 or S1-S0) should be distributed as chi-square in the number of regressors being tested for endogeneity, so I'm testing 1 variable as endogenous or not, the dof should be 1. Does this method looks correct? Many thanks. Best wishes, Meng
Comment