Hello,
I am trying to merge 2 datasets (see sample of datasets below) . Each time I try to merge by patid, visit, and day, I get an error message saying the variables do not uniquely identify observations. I am unsure of what to do next. Any help will be greatly appreciated.
----------------------- copy starting from the next line -----------------------
----------------------- copy starting from the next line -----------------------
------------------ copy up to and including the previous line ------------------
I am trying to merge 2 datasets (see sample of datasets below) . Each time I try to merge by patid, visit, and day, I get an error message saying the variables do not uniquely identify observations. I am unsure of what to do next. Any help will be greatly appreciated.
----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str19 patid byte visit int day double Eq5d "Z022509-20012-20546" 7 1 .75 "Z022509-20012-20546" 11 22 .78 "Z022509-20012-20546" 15 43 .88 "Z022509-20012-20546" 20 64 .67 "Z022509-20012-20556" 7 1 .88 "Z022509-20012-20556" 11 23 .78 "Z022509-20012-20556" 15 43 .56 "Z022509-20012-20556" 20 64 .36 "Z022509-20012-20556" 24 85 .44 "Z022509-20012-20535" 7 1 .62 "Z022509-20012-20535" 11 20 .689 "Z022509-20012-20535" 15 43 .682 "Z022509-20012-20535" 20 64 .62 "Z022509-20012-20535" 24 85 .429 "Z022509-20012-20535" 28 134 .358 "Z022509-20012-20535" 33 155 .789 "Z022509-20012-20535" 37 176 .265 "Z022509-20012-20535" 46 216 .888 end
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str19 patid byte visit int(day LBTscore) "Z022509-20012-20546" 7 1 94 "Z022509-20012-20546" 11 22 110 "Z022509-20012-20546" 15 43 98 "Z022509-20012-20546" 20 64 96 "Z022509-20012-20556" 7 1 107 "Z022509-20012-20556" 11 23 100 "Z022509-20012-20556" 15 43 96 "Z022509-20012-20556" 20 64 110 "Z022509-20012-20556" 24 85 111 "Z022509-20012-20535" 7 1 92 "Z022509-20012-20535" 11 20 92 "Z022509-20012-20535" 15 43 113 "Z022509-20012-20535" 20 64 79 "Z022509-20012-20535" 24 85 37 "Z022509-20012-20535" 28 134 66 "Z022509-20012-20535" 33 155 72 "Z022509-20012-20535" 37 176 92 "Z022509-20012-20535" 46 216 111 end
Comment