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
How to write a heckman selection model whose second stage is a finite mixture modelDear statalist: I want to do a heckman seclection model whose second stage is a fmm by joint maximu…
ItsaDear I am new using time series analises in stata, so need some help. I am try to use the ITSA comma…
Offset() option in Poisson/negative binomial regressionHello everyone, I am working on count data and have the follow-up time in days. Do I need to log-tr…
delete observations conditionallyDear All, I find this question here (https://bbs.pinggu.org/forum.php?mod...=1#pid57289524). The dat…
Interpreting regression coefficients in terms of standard deviationHi! I feel it's more of an econometrics/statistics question, but I would also want to learn how I c…
Subscribe to:
Post Comments (Atom)
0 Response to Merge with duplicates in the using data set
Post a Comment