The dataset: ID, admission date, ....2 other columns. There are multiple admission dates for the same ID. For example:
ID: 1, 1,1,2,3,3,
Date: 2-May-1998, 4-Sept-1998, 1-Oct-1998, 1-Mar-1998, etc.
Goal: Make a dummy variable that says whether each discharge has a readmission. Basically: if the next date is within 30 days of the index claim. This has to be done for each unique ID.
Any help is VERY APPRECIATED!!
ID: 1, 1,1,2,3,3,
Date: 2-May-1998, 4-Sept-1998, 1-Oct-1998, 1-Mar-1998, etc.
Goal: Make a dummy variable that says whether each discharge has a readmission. Basically: if the next date is within 30 days of the index claim. This has to be done for each unique ID.
Any help is VERY APPRECIATED!!

Comment