I have to perform a rolling regression with Newey-West se over 1135 obs with a window of 52. I run it over the "rolling" window and enter there the code
I can then tick "Model coefficients" and "SE of model coefficients". In the next line I could enter other statistical expressions. What do I have to put in to also get the t-statistics, i've already tried what i thought would make sense, e.g. _t, _tstat, ....
The code which i get in the end from the rolling window is this:
Ideally, I'd also like to get the adj. r2, for this I now use:
But it always deletes my initial variables, is there a way for stata to save the coefficients, se and t-stats from the newey regression and the adj. r2 from the normal regress?
Code:
newey PBQ1 MKTRF SizeTLS momLS, lag(7)
The code which i get in the end from the rolling window is this:
Code:
rolling _b _se, window(52) clear : newey PBQ1 MKTRF SizeTLS momLS, lag(7)
Code:
rolling e(r2_a), window(52) clear : regress PBQ1 MKTRF SizeTLS momLS
Comment