Hello.. I have a difficulty in calculating with stata the following formula.
yt= bo + xt with rolling way t=1~39, 2~40, ..... 129~167
Here, rolling way means "estimate is applied over a given data sample and the sample is moved up or "rolled" forward one observation. This process continues until all observations are exhausted. "
Basically, the b0 is yt-xt and the estimated bo is the average of yt-xt t=1~39, 2~40, ..... 129~167.
there will be total 129 estimated bo.
and for each 129 estimated bo, there will be 39 residuals. (so total 129 * 39 = 5031)
If anyone can give me some help with coding this formula, I would really appreciate it.
Thank you!
Related Posts with rolling + average
Creating new variable as the sum of another variableHi, Apologies for the vague title. I am trying to create a new variable which is the sum of the 'ssq…
Performing regression analysis by IDDear all, Sorry I'm new to the forum, although I have read many posts, I was not able to find the so…
changing the color of just one bar in a single category bar chartIm trying to generate a bar chart with one of the bars representing the average value across all IDs…
Heteroscedasticity + Multicollinearity in panel dataHello, I am in the proceedings of my bachelor thesis and I collected a panel data set of 22 countrie…
What type of model(s) can I use for my (definitely not linear) dependent variable?I have dependent variable, measured with a range of 0-100% (nevertheless it takes on fairly few vari…
Subscribe to:
Post Comments (Atom)
0 Response to rolling + average
Post a Comment