Hi there
I want to merge two datasets ("A" and "B"). Each dataset contains id variable to identify the person, but in each dataset each person can come up more than once (panel data). One way to match 1:1 would be to match on both id and date, the combination of which uniquely identifies the observations. However, some dates from dataset B that should be identical to the dates in dataset "A" are not always exactly the same (they can be out by 1 day either way). Therefore I would like to merge on id and date where date from dataset B can be -1 or +1 date in dataset A.
Does anyone know if that sort of merge is possible?
With thanks
I want to merge two datasets ("A" and "B"). Each dataset contains id variable to identify the person, but in each dataset each person can come up more than once (panel data). One way to match 1:1 would be to match on both id and date, the combination of which uniquely identifies the observations. However, some dates from dataset B that should be identical to the dates in dataset "A" are not always exactly the same (they can be out by 1 day either way). Therefore I would like to merge on id and date where date from dataset B can be -1 or +1 date in dataset A.
Does anyone know if that sort of merge is possible?
With thanks
Comment