Hi All!
After going through the help files on STATA for joinby and merge I still can't figure out how to do the following:
For example I have two datasets, which I am trying to combine into one dataset based on the matching variable Date in both; but also want to keep the matched variables in the master dataset (i.e. merge two, but keep only the data where master Date variable matches up with Date variable in using)
The command I am trying is merge 1:1 Data using XXXX.dta but from what I can tell it keeps the master variables which are matched to using dataset; is there any way around this?
For reference I will attach both datasets (so trying to join HK to China, but keep only the data with matching Date variable).
(P.S. I have tried joinby command as well, but that doesn't do anything at all?)
Thank you in advance!
After going through the help files on STATA for joinby and merge I still can't figure out how to do the following:
For example I have two datasets, which I am trying to combine into one dataset based on the matching variable Date in both; but also want to keep the matched variables in the master dataset (i.e. merge two, but keep only the data where master Date variable matches up with Date variable in using)
The command I am trying is merge 1:1 Data using XXXX.dta but from what I can tell it keeps the master variables which are matched to using dataset; is there any way around this?
For reference I will attach both datasets (so trying to join HK to China, but keep only the data with matching Date variable).
(P.S. I have tried joinby command as well, but that doesn't do anything at all?)
Thank you in advance!
Comment