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