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
Cumulative incidence estimation in the presence of competing risksGood evening, In the last two days I'm dealing with "Cumulative incidence estimation in the presenc…
metaprop - show subgroup pooled estimates onlyI using metaprop on 160 studies, subgrouping data by country. I want to suppress the study-level est…
svyset: missing standard error because of stratum with single sampling unitSince the dataset I'm using has a Stratum (v022) with only one PSU (v021), and I have to use the fol…
Regression by yearHi all, I have a dataset that includes a list of information on companies from 2000-2014. I am loo…
Weighting of Indian Demographic Health Survey (2015-16) dataUsing the Indian DHS 2015-16 data for my analysis, I have merged three files together (1) Person fil…
Subscribe to:
Post Comments (Atom)
0 Response to Five-Year Running Average by Country-Year
Post a Comment