By using a time-series dataset, I want to create a moving additive index. For example, I need a 5-year additive index for each year (between 1990-2015) where the value for each year is the additive value of five years prior.
Can the moving average code change to being a moving additive code? Is this possible in Stata?
Thanks!
Related Posts with Moving average code to moving additive?
mixed vs. xtreg, reHere are four ways to estimate the same model (I think): Code: xtreg absent ib(2).classtype ib("k"…
Writing a LoopDear Statalist Users, I have multiple txt files and I want to convert them into stata files so that…
stata ttest significanceHi everyone, I have the following dataset Code: * Example generated by -dataex-. To install: ssc…
Asdoc "conformability error"Dear Statalist, I am getting an error message when running the asdoc command. The first code works …
Best command for cross-classified modelsI'd like to fit a model with student and teacher random effects. The ID variables for students and t…
Subscribe to:
Post Comments (Atom)
0 Response to Moving average code to moving additive?
Post a Comment