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
Help with basic subsetting/sub-samplingHello! I am new to programming and need some help with basic subsetting in STATA or R. Hoping someon…
How to implement the herding measure proposed by Lakonishok et. al (1992) in stataHi all I am currently calculating herd behavior on the trading platform "Robinhood" and I am using …
String matching to create multiple variablesI need help grouping/creating variables based on string matching. For each patient, they get a new r…
Problem relating to macro panelsHello folks!! I am researching on the determinants of growth of NBFI assets for N=11 countries and T…
Logistic regression for categorical variablesWhen running a logistic regression, I'm unable to see all the categories under my variable. For eg: …
Subscribe to:
Post Comments (Atom)
0 Response to Computing rolling lagged sums with bysort
Post a Comment