Get Time Value

Use this forum to post Vensim related questions.
Post Reply
kalegria
Junior Member
Posts: 14
Joined: Tue Jan 24, 2017 12:49 pm
Vensim version: DSS

Get Time Value

Post by kalegria »

Hi, I am trying to set up an equation to look like this:

y = x+(X*(1-R)*(time-1)), where x is measured in "ideal total days in treatment", R is the rate measured as "days medication was taken/days medication was prescribed", and time is just the measure of time, same as specified in the model (time step=1 day). So, for example, at time step=2 days, I would like (time-1) to have a value of "1".

How do I program "(time-1)" into this equation? I have used "GET TIME VALUE (0,-1,0)" for now, but I am not sure I have done this correctly.

Thanks for your help.
Administrator
Super Administrator
Posts: 4589
Joined: Wed Mar 05, 2003 3:10 am

Re: Get Time Value

Post by Administrator »

All you do is use the word "time".
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
kalegria
Junior Member
Posts: 14
Joined: Tue Jan 24, 2017 12:49 pm
Vensim version: DSS

Re: Get Time Value

Post by kalegria »

Does it make a difference if I use it as "Time" vs. "time"? Capitalization matters?
Administrator
Super Administrator
Posts: 4589
Joined: Wed Mar 05, 2003 3:10 am

Re: Get Time Value

Post by Administrator »

No, it's not case sensitive.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
kalegria
Junior Member
Posts: 14
Joined: Tue Jan 24, 2017 12:49 pm
Vensim version: DSS

Re: Get Time Value

Post by kalegria »

Great, thanks!
Post Reply