Hi there
I am using the merge command for matching between two datasets.
A successful pair needs to match on var1 and at least one other variable (var2, var3 or var4).
Ideally I would then get a report on which combination of variables allowed the pairs to be successfully matched (e.g. var1+var2, var1+var4, var1+var3+var4, etc).
Is there a way to do this without breaking my datasets into multiple different pieces and running multiple merge commands?
Many thanks for any advice.
Related Posts with merge on one variable and AT LEAST one other variable
Tabulation based on multiple categorical variablesI am using Stata 17 and I’d like to produce a frequency table (tabulate one way) based on multiple v…
Logit odds ratioI am using xtlogit and have a simple model that performs as we might wish. But the odds ratio for on…
Loop functionHello, I want to generate following: gen capm1 = rmrf if decile == 1 and this 10x times, basically …
Parameter estimates scaled by SDHello Forum, Does anybody has an idea how to approach to get parameter estimates scaled by the stan…
grouping dimensions with bordersI want horizontal lines separating my the levels of my first dimension. I can almost obtain this usi…
Subscribe to:
Post Comments (Atom)
0 Response to merge on one variable and AT LEAST one other variable
Post a Comment