Dear Joao Santos Silva or any other person who can help me with this problem. How do I include these extra statistics in xtqreg:
- I want to add a measure of fit (such as the Pseudo R2 recommended by Koenker)
- The correlation between the error terms and the independent variables (if possible) since I am likely dealing with endogeneity (I am looking at the effect of news on returns), and whether this correlation is significant at 5%, 1% or 0.1%. I would like to show whether endogeneity is present in different parts of my sample, therefore I would like to include a measure (incl significance) that shows whether it is endogenous. I want to include a measure of endogeneity, as I believe this measure to be higher for higher amounts of news or risk based on news.
- Clustering or dummies on a country level (I read something about bootstrapping them but I have not worked with Stata before so not sure how I would have to do that).
Please note I am not a mathematician so I am looking for some code that is relatively simple to implement.
My code right now looks like this
eststo MYREG1: xtqreg Ret Word2 Art stdevnewsrisk sumweekscoring
esttab . using nome.tex, b(3) replace not unstack compress obs label pr2
But the pr2 is not showing any result and country clustering is not included (yet). And the endogeneity measure still needs to be included.
Thanks in advance for your help.
- I want to add a measure of fit (such as the Pseudo R2 recommended by Koenker)
- The correlation between the error terms and the independent variables (if possible) since I am likely dealing with endogeneity (I am looking at the effect of news on returns), and whether this correlation is significant at 5%, 1% or 0.1%. I would like to show whether endogeneity is present in different parts of my sample, therefore I would like to include a measure (incl significance) that shows whether it is endogenous. I want to include a measure of endogeneity, as I believe this measure to be higher for higher amounts of news or risk based on news.
- Clustering or dummies on a country level (I read something about bootstrapping them but I have not worked with Stata before so not sure how I would have to do that).
Please note I am not a mathematician so I am looking for some code that is relatively simple to implement.
My code right now looks like this
eststo MYREG1: xtqreg Ret Word2 Art stdevnewsrisk sumweekscoring
esttab . using nome.tex, b(3) replace not unstack compress obs label pr2
But the pr2 is not showing any result and country clustering is not included (yet). And the endogeneity measure still needs to be included.
Thanks in advance for your help.
Comment