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
areg cluster identificationHello experts of Statalist, Sorry in advance for my inexperience. I am running "areg" for a panel d…
kappaetc: Testing for signficance of a difference in before / after interventionI am using kappaetc (SSC) Inter-rater reliability, comparing diagnostic agreement before vs. after a…
Creating long format time series from start and end date in wide formatHello, I have a data set on judges with a term start year and term end year. I would like to have a…
Simple commands not working....wonder why (Stata/IC 15.1)Hi, I wanted to run a simple command for moving one of my variables called "comment" to the end of …
Added Variable Plot and PPMLHDFEI am using ppmlhdfe for a Poisson regression and I want to understand if some points might be influe…
Subscribe to:
Post Comments (Atom)
0 Response to Five-Year Running Average by Country-Year
Post a Comment