Dear Stata users.
Please, I need your help with this question. I have two panel datasets, A &B.
Panel A is the master dataset and contain all variables and ID's that I need in the study.
Panel B is the secondary dataset, that contains all of the ID's and variables that I need in the study, but they are not sequential. Panel B also contains many IDs that I do not need to have in my master file. Since the dataset is so, large, I cannot sort them one after another before merging the two datasets.
I want to match these IDs in panel A with B to obtain a dataset that retains every information in panel A, but only the required IDs from B in the master dataset.
I tried
. The data merges, but mismatches the IDs as it does so sequentially.
I tried
, but there are similar mismatches with IDs. Someone (William Lisowski ) suggested this
but it didn't work for me.
Please, can you advise on how I can proceed?
Thank you in advance.
Please, I need your help with this question. I have two panel datasets, A &B.
Panel A is the master dataset and contain all variables and ID's that I need in the study.
Panel B is the secondary dataset, that contains all of the ID's and variables that I need in the study, but they are not sequential. Panel B also contains many IDs that I do not need to have in my master file. Since the dataset is so, large, I cannot sort them one after another before merging the two datasets.
I want to match these IDs in panel A with B to obtain a dataset that retains every information in panel A, but only the required IDs from B in the master dataset.
I tried
merge 1:m ID time using "C:\Users\Beri Parfait\Desktop\Data\HDI_v2.dta"
I tried
joinby ID time using "C:\Users\Beri Parfait\Desktop\Data\HDI_v2.dta", unmatched(master)
HTML Code:
Merging two sets of panel data - Statalist
Please, can you advise on how I can proceed?
Thank you in advance.
Comment