For example, I have a data taking the values as follows. How can I assign each value of t as t(1), t(2), ... , and x as x(1), x(2), ... so that I can compute something likes ln[x(2)/x(1)], ln[x(3)/x(2)], ... , and name these values as a new variable y.Don't tell me to do it in Excel. Of course, I know how to do this simply in Excel, but I just want to know whether it can be perform in SAS so that I do not need to switch from Excel and SAS so frequently.
data a;
input t x;
cards;
1 10
2 13
3 17
4 14
5 16
6 18
7 15
8 12
9 11
10 15
;
run;