Hi all,
I have a somewhat conceptual question.
Currently, I have a long do-file of 2000 lines. It works how I want it to work except my regression results differ every time I run the complete do-file.
What are reasons for this to occur?
Below you can find some of the code that I suspect of being a cause:
The regressions I run are panel OLS regressions
1. PLain regression
2. adding time fixed effects
3. adding time fixed effects and the option robust
4. adding time fixed effect, robust and clustering of the errors
I am curious to see wether this is indeed the case?
Regards,
Nicole
I have a somewhat conceptual question.
Currently, I have a long do-file of 2000 lines. It works how I want it to work except my regression results differ every time I run the complete do-file.
What are reasons for this to occur?
Below you can find some of the code that I suspect of being a cause:
Code:
* creating the standard deviation of the stock price for the previous 60 months tsegen double SD_ret = rowsd(L.(1/60).ret) *Need to winsorize the bottom and top 5% of the standard deviations of the stock retruns. ssc install winsor winsor ret_SD, gen(W_ret_SD) p(0.05) drop ret_SD rename W_ret_SD ret_SD
1. PLain regression
2. adding time fixed effects
3. adding time fixed effects and the option robust
4. adding time fixed effect, robust and clustering of the errors
I am curious to see wether this is indeed the case?
Regards,
Nicole
Comment