Hi all, I'm a new user to Stata. I have a dataset with a variable for different countries and years, and I wanted to generate a new variable for the variable's five-year running average for each country. Some countries have data for more years than others. I tried to "tset year" the data to potentially use tssmooth, but there were repeated time values in the sample. Any help is much appreciated!
Related Posts with Five-Year Running Average by Country-Year
Challenge in importing csv fileHi Stata Users, I am using Stata 16 to import the attached file using the command below [ Code: i…
Validity of fixed effects modelHello, I am investigating the effects of climate finance on climate vulnerability scores in Sub-Saha…
How to design graph for multiple choice question?Dear Statalist, I hope this finds you well. I would like to design a graph (e.g. pie chart or bar …
How to overlay distribution of participants responses for a certain survey question?Dear Statalist, I hope you are well. I got this comment (Distribution of ‘i’ more extreme for micr…
Time Trend in PM2.5 and How to Deal with It in Cox Regression?Hi All. I am currently study the association between PM 2.5 and adult ANCA asthma ( a disease). Hig…
Subscribe to:
Post Comments (Atom)
0 Response to Five-Year Running Average by Country-Year
Post a Comment