Hi,
I would like to merge two data sets. Dataset A contains the values of the variable x. Among them are duplicates and missing values. Dataset B contains the variables x and y. In the dataset B the variables x are unique, i.e. no duplicates and missing values. The variable y does contain duplicates, i.e. some unique values of x correspond to the same y value. I have tried "merge m:1 using dataset B", but I ve received the errror message that "the variable x does not uniquely identify observations in the using data", which makes sense. Dropping the duplicates from dataset B is not an option. The task I would like to perform would be quite easy in excel with the vlookup function, however this is not possible due to a high number of observations. Do you have any suggestions?
Thank you very much
Best
Denis
Related Posts with Merge with duplicates in the using data set
F-keys in profile.doDear all, I am generating my file profile.do: Code: /*==========================================…
Export DTA file to sas7bdat file?Hello Stata users I'm trying to export a Stata DTA file to sas7bdat file? I have tried the export …
GMM Continuously Updating Estimator - convergence not achievedDear Statalists, I am using an IV framework for a collection of "h" regressions (Local projection) …
Strange macro behaviourHi guys, I am trying, with the following loop to drop some of my observations, specifically the one…
Interpretation of AMEs: CIs overlapping each other but not zero, can I conclude that there is an interaction?Hi all, I'm fitting a simple OLS-model including an interaction term. To interpret the interaction …
Subscribe to:
Post Comments (Atom)
0 Response to Merge with duplicates in the using data set
Post a Comment