How can I exclude all occurences after the earliest recorded date for each patient ID without selecting each row I want to exclude? EX: I want to keep the top line and exclude the remaining
Try the attached. If you really want the rows excluded and not set to missing, then I imagine there is some coding that can be used (and someone will be sure to provide that).
Hi,
A simple way to achieve this would:
Best,
TS