Dear Stata Community,
I needed help in elaborating code for obtainning an endogeneity test for each of my 8 explanatory variables on wether they are endogenous or exogenous with respect to the error term.
I believe there are two ways of checking this, to which I would ask for help to elaborate code on. Either obtainning the expected value of the residuals conditional on a explanatory variable or having a test that checks wether the explanatory variable at hand is endogenous or exogenous with respect to the error term or residuals.
Thank you in advance.
I needed help in elaborating code for obtainning an endogeneity test for each of my 8 explanatory variables on wether they are endogenous or exogenous with respect to the error term.
I believe there are two ways of checking this, to which I would ask for help to elaborate code on. Either obtainning the expected value of the residuals conditional on a explanatory variable or having a test that checks wether the explanatory variable at hand is endogenous or exogenous with respect to the error term or residuals.
Thank you in advance.
Comment