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
Replace/If StatementHello, I have a syntax issue that I need assistance with. I have a dataset with confirmed COVID cas…
Matched pairs based on three matching criteriaDear all, I have panel data of funds where one type of fund has received a "treatment" and the "con…
Relative changes in predicted probabilities among survey participants with a prior responseGood day everyone. I'm having difficulties in generating a similar output found in an article that …
How to save table from -pstest- command?Hi there, My goal is to save the table produced by the command -pstest-, preferably to word but I w…
Using framesI am using Stata MP 16.1 and I'm new to the frames command. Perhaps this goes into the wishlist for …
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