How do I create a centered moving average in panel data? I've consulted this document: https://www.stata.com/support/faqs/s...nd-panel-data/ -- specifically the section on panel data. But I'm not sure how / whether to use to tsset. I want to take the centered moving average of a variable over five consecutive months, across my main time variable: year_month. Thanks very much.
-
Login or Register
- Log in with
Comment