Hi, I need to merge two datasets of dissimilar patient test data, and I'm absolutely stuck with this problem with no idea what approach to take.
Here's the situation:
Dataset 1 - patients having test no. 1
Lab numbers (unique), dates/times, patient identifier
- multiple tests per patient
Dataset 2 - patients having test no. 2, all these patients have had test no. 1
Lab numbers (unique, not shared with dataset 1), dates/times, patient identifier
- multiple tests per patient
- many more of test no. 2 than test 1
I need to merge dataset 2 into dataset 1, taking the highest result of test 2 within 48 hours of each obs of test 1, such that I can eventually check the performance of test 2 against test 1. I would be very appreciative with some advice on how to go about doing this.
Thanks in advance,
Chris
Here's the situation:
Dataset 1 - patients having test no. 1
Lab numbers (unique), dates/times, patient identifier
- multiple tests per patient
Dataset 2 - patients having test no. 2, all these patients have had test no. 1
Lab numbers (unique, not shared with dataset 1), dates/times, patient identifier
- multiple tests per patient
- many more of test no. 2 than test 1
I need to merge dataset 2 into dataset 1, taking the highest result of test 2 within 48 hours of each obs of test 1, such that I can eventually check the performance of test 2 against test 1. I would be very appreciative with some advice on how to go about doing this.
Thanks in advance,
Chris
Comment