Home > database > [for] the first array of sas statement variable values and finally a numerical problem
[for] the first array of sas statement variable values and finally a numerical problem
Time:11-01
To ask everybody the teacher, now I have two columns of data, data format is as follows: Id price 1 100 1 100 1 100 1 80 2 100 2 100 2 50 3 150 3 60 I want to by sas statements calculation under the same id, (the price of the first data) - (price) of the last data/(price of the first data) For example when id=1, (100) - (80)/100 Want to ask everybody the teacher, how should express?