I have a more general question that I am struggling to find a direct answer to about the functionality of -rolling- when it is used with panel data. I am trying to run a regression using -xtivreg2- for a moving window of dates. I had assumed that -rolling- would accomplish this easily, but the rolling replications have me a bit confused. As other posts have noted, it seems that after the regression is estimated for the entire panel for the given window, -rolling- goes on to run the same regression specification for each group (in my case each country) of the panel. Furthermore, it appears these rolling replication regression coefficients are saved and not the coefficients of the regression for the entire panel for a given timeframe, which is what I am ultimately interested in.
I don't know if I just missed something in the documentation to suppress this, if this is just what -rolling- is always meant to do with panel data, or if there is some element of my regression specification that prompts this. In case it is helpful for addressing the question, here is what I am running:
I don't know if I just missed something in the documentation to suppress this, if this is just what -rolling- is always meant to do with panel data, or if there is some element of my regression specification that prompts this. In case it is helpful for addressing the question, here is what I am running:
Code:
rolling _b _se, window(4) start(1986q1) end(1996q1) clear: xtivreg2 infl (einfl ugap = L(0/1).r L(2/3).infl L(1/2).ugap L(1/2).ygap) linfl if peg==1, fe cluster(iso) robust
Comment