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
Estimation window for multiple events per companyDear community, I want to perform an event study on dividend announcement effects. My problem is th…
Stata Probit Model Interaction Term InterpretationHello everyone, for my thesis i am currently investigating the effects of emissions on health on a …
generalised DID with two-way fixed modelDear researchers, I have unbalanced panel data for a set of firms for the year that extends from 200…
Oprobit dependent variables only categorical?Dear all, I am not that familiar with ordered probit regression. Please, tell me, should all depende…
dsregress displays undefined error when Estimating lasso for variables of interestI am currently running a series of lasso regressions and I encountered an error that I cannot identi…
Subscribe to:
Post Comments (Atom)
0 Response to Anchor the tssmooth command at start point
Post a Comment