Page 1 of 1

Get Time Value

Posted: Tue Jan 24, 2017 12:57 pm
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.

Re: Get Time Value

Posted: Tue Jan 24, 2017 1:04 pm
by Administrator
All you do is use the word "time".

Re: Get Time Value

Posted: Tue Jan 24, 2017 1:19 pm
by kalegria
Does it make a difference if I use it as "Time" vs. "time"? Capitalization matters?

Re: Get Time Value

Posted: Tue Jan 24, 2017 1:22 pm
by Administrator
No, it's not case sensitive.

Re: Get Time Value

Posted: Tue Jan 24, 2017 1:25 pm
by kalegria
Great, thanks!