Hi,
I'm trying to merge two datasets by phone number. In dataset 1, each observation only has one phone number (so just one phone number variable). In dataset 2, each observation has a primary phone number and a secondary phone number (so two different phone number variables). I'd like to merge these two data sets by merging observations where the one phone number in the first dataset matches at least one of the phone numbers in the second dataset. I've looked through the merge documentation but it doesn't seem like there is an option to do this.
Any help would be appreciated!
Related Posts with merge when value of one variable in dataset 1 matches either value of two variables in dataset 2
Post-estimation, predicting the dependent variable with a change to one or more independent variablesDear Stata community, I'm attempting to predict the value of a dependent variable if one of the ind…
Graphing adjusted odds ratio (multiple line graph)Can someone please share with me of the STATA command that I can use 1) to predict adjusted odds rat…
Creating a square matrix using two relational variablesHi, I've spent 5-6 hours browsing the help files and past posts, but could not find the answer to w…
First Differences regression and estimateDear members, I am a student new to STATA and may need your help on the below question. I have the…
How can I make further tests after a 2SLS-probitDear statalists: I want to do a weak-iv test and an endogenous test after a 2sls-probit. Because the…
Subscribe to:
Post Comments (Atom)
0 Response to merge when value of one variable in dataset 1 matches either value of two variables in dataset 2
Post a Comment