Dear All,
I have a panel dataset and I would like to “rolling” regress my dependent variable on a main variable of interest (plus several controls).
Just to give you more details, my id variable is represented by a numerical code which also proxies for geographical distance. Then, in order to account for spillover threats, I would like to regress the dependent variable of each id unit i on the main control ranging in an interval i - n, i + n, unit i included as well, over the time dimension of my sample.
I tried to use the rolling command, but actually I did not figure out a proper way to deal with this question.
Any suggestion?
Many thanks in advance.
Best regards,
Pasquale Giacobbe
Related Posts with Rolling regression on id units sub-intervals
How to construct a 95% confidence interval for a solved regression equation?I have solved a regression equation in order to find a CEO's salary after ten years. The equation is…
How to get AIC/BIC after fitting mixed lear regression on imputed dataI am wondering if any body would help me in getting AIC?BIC for multiple imputed data and analyzed u…
If else loop in StataHi, I wrote a code like if x=="x1"|x=="x2" { replace z=y replace a=b } However, it did not work. I…
Graph bar chart with string variablesThere are basically 4 groups of variables. I want to graph a bar chart that has 3 slices, nation-wid…
Probit: comparing effects between dummy variablesHi all, first of all: sorry if my description of the problem is not "on point" - my main problem is…
Subscribe to:
Post Comments (Atom)
0 Response to Rolling regression on id units sub-intervals
Post a Comment