How to model a t-1 function on vensim

Use this forum to post Vensim related questions.
Post Reply
jdiab11
Newbie
Posts: 1
Joined: Tue Jul 16, 2019 5:08 pm
Vensim version: PLE

How to model a t-1 function on vensim

Post by jdiab11 »

I need to calculate several sensitivity and elasticities in my model, how can i tell vensim that i need a t-1 in an equation?
For instance, supposed i have X and Y linked, and Y = (X(t)-X(t-1))/X(t), how can i write this equation on vensim?
tomfid
Administrator
Posts: 3808
Joined: Wed May 24, 2006 4:54 am

Re: How to model a t-1 function on vensim

Post by tomfid »

Usually it's easiest to create something like:

Previous X = DELAY FIXED(x, one period, x)

More here:
https://metasd.com/2017/11/discrete-time-stinks/
Post Reply