Dear Statalist users,
I have monthly time series data on flight_delays per air_carrier. For each air_carrier (uniquely identified by date and carrier identifier), I want to compute the rolling sum of delays across the past 5 months (from t=0 until t=-5).
I was looking into tsegen but did not figure out how to solve the issue that tsegen does not allow for bysort.
It would be really kind if someone could help me with this, I have been trying to find a solution for this all morning.
Thanks
Christian
Related Posts with Computing rolling lagged sums with bysort
How to report output from margins?I am planning to add support for margins in asdocx. Since I have not used margins myself, therefore,…
stacked bar graph for different years showing shares of countriesDear all, I want to produce a graph from a dataset containing the production of aluminum in differe…
Calculation of the "T" statistic for High minus (-) Low double sort portfolioI have a double sort portfolio results based on two variables (X and Y). I would like to calculate t…
"Import - sas" doesn't show up in my stata - any solution?Dear all, I want to import a sas dataset into stata but I do not have this function in my program. …
How to compute p-value when the chi-square value and degree of freedom are known in Stata?I know how to compute p-value when the chi-square value and the degree of freedom are known in R, (e…
Subscribe to:
Post Comments (Atom)
0 Response to Computing rolling lagged sums with bysort
Post a Comment