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
DOS windows how to remove itDear all, My question will be quite simple I think but I just need to know if my wish could be real…
GEE: results significant only with independent and exchangeable correlation structureHello there! I am trying to fit a GEE Poisson model on a panel dataset consisting of T=360 and N=30…
Variable types for regressionsCan anybody let me know what are the variable types on which a regression can run? …
Extracting Year From DateHi, I have looked through older discussions and applied suggestions but my code returns an empty var…
Measuring Spells - two special cases in panel dataHi Statalist. I have code to identify and measure the length of a spell - the spell relates to coup…
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