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
How to substract two variablesHi everyone, I just want to know how to substract two variables. This what I mean: n_iden rest 12 1…
Interpretation of interaction variableDear all, I am analyzing whether a CEO turnover (c. 600 events) has a long-term (5 years) impact on…
how to add a grouping by variable to the scatter plot to create a panel New user to STATA pls helpHi all, Im very new user to STATA. I have the code below and am wanting to create a panel of scatter…
outreg2 for ivreghdfeDear Statalists, I am quite new to reghdfe and ivreghdfe. I hope someone can help me with my code. …
Checks for Tobit regressionHi i have done a tobit regression to estimate the price elasticities of demand for alcohols and have…
Subscribe to:
Post Comments (Atom)
0 Response to Five-Year Running Average by Country-Year
Post a Comment