Dear all,
I am trying to merge 3 data with different numbers of records for every ID (all data are from one study). Each participants in three data has different number of visits. For example: id 1 has visit 0, 1, 4, 6 and 8 in Data No1, then same person has visits 0, 1, 2, 3, 4, 5, 6 in Data No2. When I merge them it creates a lot of missing variables. I would like to match 2 additional data (Data No2 and Data No3) to main one (Data No1) by id and visit and drop extra visits.
Is it possible to do this with STATA?
Thank you in advance.
Oyun
I am trying to merge 3 data with different numbers of records for every ID (all data are from one study). Each participants in three data has different number of visits. For example: id 1 has visit 0, 1, 4, 6 and 8 in Data No1, then same person has visits 0, 1, 2, 3, 4, 5, 6 in Data No2. When I merge them it creates a lot of missing variables. I would like to match 2 additional data (Data No2 and Data No3) to main one (Data No1) by id and visit and drop extra visits.
Is it possible to do this with STATA?
Thank you in advance.
Oyun
Comment