Hi - I have a dataset with daily observations over 240 sequential days. Is there a way to calculate a rolling average that is anchored at the first day? Specifically, I'd like to create a weekly average that updates by week so that the first value is the average of days 1 to 7, the second value is the average of days 1 to 14, the third value days 1 to 21, and so forth to the end.
I can't find a way to make tssmooth behave in this way. But maybe it can be done manually using a foreach loop?
Thanks!
Related Posts with Anchor the tssmooth command at start point
What is the relationship between decomposition of margins?I'm reading the documentation for margins, and in particular "Example 9: Decomposing margins". In t…
Levels Problem in RegressionI hope you are doing well. I am facing a problem with levels in model specification. I have an inde…
Geocoding in StataI have address variable (~700k observations) and I would like to get latitude and longitude of the a…
Page Up and Page Down don't work on LinuxThe documentation says: Page Upsteps backward through the command history. Page Downsteps forwar…
Lasso for selection of variables and running logit regression using selected variables in lassoHi all, Can someone help me please, I am assessing the impact of income(X1) on economic growth (Y) b…
Subscribe to:
Post Comments (Atom)
0 Response to Anchor the tssmooth command at start point
Post a Comment