Hi, I have a fairly complicated issue that I have been trying to work and wanted to see whether anyone had a better way of going about this. I have a dataset that includes weight, systolic BP, and diastolic BP that has been collected on different days of the year. I would to calculate the percent change of the WEIGHT, SBP, and DBP variables at each previous date. I first created a count variable to order the dates from oldest date to newest date for each subject, and now I am trying to find a way to tell SAS to calculate the percent change for the weight, SBP, and DBP records for every date using the records from the date that comes before it. So COUNT 2-1, 3-2, 4-3, etc.... My dataset looks like this: Subject DATE WEIGHT SBP DBP COUNT 154 30NOV2016 102 120 80 1 154 15DEC2016 102 115 75 2 154 02JAN2017 110 120 80 3 104 20SEP2016 145 120 80 1 104 02JAN2017 110 120 80 2 104 20FEB2017 145 120 80 3 104 02MAR2017 110 120 80 4 104 20APR2017 145 120 80 5 Any help would be greatly appreciated! Thank you!
... View more