Hi there
I am trying to merge two data sets, B into A.
They both have the same number of original participants (n=8000), but
A is my main data set, on which I've done a complete case analysis and dropped 2500 participants (n = 5500)
B is a data set of just one variable, which has measurements on all 8000 participants.
When I merge, I want to add in the data from dataset B, 1:1 only added to all my participants left in dataset A (ie, 5500); I do not want all 8000 participant's measured variable in database B to be added to database A
The latter situation is what happens when I type the code:
merge 1:1 participant_id using database_b.dta
Does anybody know to only merge data for the participants I want?
Thanks
Al
I am trying to merge two data sets, B into A.
They both have the same number of original participants (n=8000), but
A is my main data set, on which I've done a complete case analysis and dropped 2500 participants (n = 5500)
B is a data set of just one variable, which has measurements on all 8000 participants.
When I merge, I want to add in the data from dataset B, 1:1 only added to all my participants left in dataset A (ie, 5500); I do not want all 8000 participant's measured variable in database B to be added to database A
The latter situation is what happens when I type the code:
merge 1:1 participant_id using database_b.dta
Does anybody know to only merge data for the participants I want?
Thanks
Al
Comment