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
Create a variable based its proportionDear Stata Users, Please, help me with the following issue. I need to calculate reserves based on t…
ttest multiple variableDear All, I want to perform a simple ttest to compare multiple variables by gender. i have tried Co…
regress rob, regression model with robust std. errorsDear community! I have a model with the violation the assumption about homoscedasticity. So first i…
Modified Poisson Regression using GLM: missing categoriesI want to know the effect of selected background characteristics on intimate partner violence among …
xtlsdvc model comparisonHi! I am running two models using xtlsdvc. The second model includes one additional explanatory va…
Subscribe to:
Post Comments (Atom)
0 Response to Computing rolling lagged sums with bysort
Post a Comment