Hello,
I am trying to merge a patient data having MB linkage and pregnancy IDs with the Mother-Baby link dataset.
I am merging on variable patient ID, after sorting them in both the datasets, but there is some mismatch in the delivery dates of the offspring.
For example, master dataset has a 2 patients with patient ID 'XX' having 2 pregnancies with pregnancy IDs 'AA' and 'BB'
MBL dataset (using dataset) has data for only pregnancy 'AA' for the patient 'XX'.
I have used the syntax:
merge m:m patid using "mbl.dta"
Upon merging, the results show same delivery date for both the pregnancies 'AA' and 'BB', because no observation was present for pregnancy 'BB' in the using dataset.
It would be great if I could get some help on this.
Thanks
Kritika
I am trying to merge a patient data having MB linkage and pregnancy IDs with the Mother-Baby link dataset.
I am merging on variable patient ID, after sorting them in both the datasets, but there is some mismatch in the delivery dates of the offspring.
For example, master dataset has a 2 patients with patient ID 'XX' having 2 pregnancies with pregnancy IDs 'AA' and 'BB'
MBL dataset (using dataset) has data for only pregnancy 'AA' for the patient 'XX'.
I have used the syntax:
merge m:m patid using "mbl.dta"
Upon merging, the results show same delivery date for both the pregnancies 'AA' and 'BB', because no observation was present for pregnancy 'BB' in the using dataset.
It would be great if I could get some help on this.
Thanks
Kritika
Comment