Dear All, Thanks so much for your efforts and kindness. I tried some programs, the results were not I expected. Here are the details of my project. I have 80 subjects to monitor lab examinations. Each subject have screen visit as baseline, then has 4 follow ups at 6, 12, 18, and 24 months. I will use month 6, 12, 18, and 24 to do survival analysis. The follow up visit date maybe before or after designed visit date (or called target date). So I want to find out If the real visit date is +/- 3 month of each month. Then I have to resign the follow up months. I would have a new variable to identify with visit date is out of the range target date. Here is my data: ID B visit_date 46 SCREEN 10/27/2008 46 MONTH06 4/23/2009 46 FLOW 10/27/2008 46 MONTH12 10/26/2009 46 FLOW 4/23/2009 46 FLOW 12/3/2009 46 MONTH18 6/10/2010 46 FLOW 1/6/2011 46 MONTH24 1/6/2011 53 SCREEN 12/19/2008 53 MONTH06 1/26/2009 Thanks,
... View more