Hi all, I am working on a dosing project where I need to add the concentration at time 12 to the concentration at time 0, concentration at time 12.25 to concentration at .25, concentration at 12.5 to the concentration at .5 .. etc. etc. etc. The following is code that I have come up with so far.. data test2; set test; if time >= 12 then do; conc2=conc+5; /*i need to add the concentration from 12 hours prior to the current concentration, '5' is my placeholder*/ end; /*i.e. conc2 at hour 13 = current concentration at hour 13 + concentration at hour 1*/ else conc2=conc; /*all concentrations prior to hour 12 are to remain the same*/ run; this may be an easy fix, but I've been looking at it so long i'm going cross eyed any help would be appreciated, thanks in advance
... View more