zxlsupergirl48
Programmer
Hi everyone,
I have a question about time issue.
The original dataset has three column:
ID, tsfd(time since first dose), dose(for ID=1, dosing twice,50 at time=0 and 100 at time=10).
Now I want to add another column called "tad"(time after last dose)
I want output like this:
ID tsfd dose tad
1 0 50 0
1 1 0 1
1 5 0 5
1 8 0 8
1 10 100 0
1 12 0 2
1 15 0 5
2
2
....
How can I use SAS code to add the column "tad"??
Thanks!!!
I have a question about time issue.
The original dataset has three column:
ID, tsfd(time since first dose), dose(for ID=1, dosing twice,50 at time=0 and 100 at time=10).
Now I want to add another column called "tad"(time after last dose)
I want output like this:
ID tsfd dose tad
1 0 50 0
1 1 0 1
1 5 0 5
1 8 0 8
1 10 100 0
1 12 0 2
1 15 0 5
2
2
....
How can I use SAS code to add the column "tad"??
Thanks!!!