you asked for: "I don't need to include Visit 1, since Visit 1 is baseline" then why is subject=117962 visit=visit1 score=0 is in the wanted output? and why subject=117964 visit=visit1 score=0 is in the wanted output? I am really sorry fo rthe confusion. In the wanted output, I want records by "Subject", which means I want ALL the records of "those Subjects" whose 2 consective visits scores jumped gretaer than 4 points, when I do the comparsion, I don't need to consider the jump between the Visit 1 and Visit 2, I only need to consider the jump (increase) between visit 2 to visit 3, visit 3 to visit 4, and visit 4 to visit 5, when I find that subject, I wnat all his(her) records in the output dataset. I hope it is clear now.
... View more