I have two different dates for different people. First column (A) is person name. Second column is (B=index event date) and the third one is (C=intervention date). The fourth column is the difference (D) between the two dates "B-C/ in days(1)" .
My question is how to let JMP choose specific value in D for each person (A). I need to select the value in the following timeframes:
1- The closest value in D before the index event date (B). Let's say one person has the following date difference values. 0, -1, -10. I want zero in this case
2- The first value in D within 2 weeks after A (0 day up to 14 days) let's say a person has 2, 8, 14. I want 2
3- The first value in D after 2 weeks from A (15 days or more) Let's say a person has 17, 25, 35. I want 17