Hi all,
The project I'm working on currently needs a rolling window estimation using xtreg on a unbalanced panel since fixed effects yield so much better results. Therefore, I can't use "rolling" which only accepts reg command.
Specifically, what I need to to is to keep track of one of the betas of xtreg X1 X2... over the windows.
I need to save its value, statistical significance and confidence interval for each period, so I can build a time series for it.
So how would I be able to save the values in a loop and store them in a matrix that I can access and export later?
thank you, any help will be appreciated.
The project I'm working on currently needs a rolling window estimation using xtreg on a unbalanced panel since fixed effects yield so much better results. Therefore, I can't use "rolling" which only accepts reg command.
Specifically, what I need to to is to keep track of one of the betas of xtreg X1 X2... over the windows.
I need to save its value, statistical significance and confidence interval for each period, so I can build a time series for it.
So how would I be able to save the values in a loop and store them in a matrix that I can access and export later?
thank you, any help will be appreciated.
Comment