hi,
I am wondering, does Vensim provide any function to perform moving average. specifically speaking, I would like to take an average of a variable in its last three time steps. For example, Average =(Variable(t-3)+variable (t-2)+variable(t-1))/3, where t is time.
I would appreciate that any one could give me some clue.
roger
Moving average
-
- Senior Member
- Posts: 1107
- Joined: Wed Mar 12, 2003 2:46 pm
Re: Moving average
For many purposes it is both much easier and more realistic to use an exponentially-weighted moving average via the SMOOTH or SMOOTH3 functions however.
/*
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/
Advice to posters (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Blog: http://blog.metasd.com
Model library: http://models.metasd.com
Bookmarks: http://delicious.com/tomfid/SystemDynamics
*/