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
Adding 2-Way Plot Options to User Written CommandsLet's say there's a command we're using to do some causal effect estimation. We run the command, and…
Placebo test for model with fixed-effectsDears, I have a question about the model specification that I wonder if people can share their thou…
Filling a number of missing variables sharing prefix with "replace"Hi Statalisters, I've merged two datasets which are cross-sectional(year of 2004) and time series(y…
Placebo test for model with fixed-effectsDears, I have a question about the model specification that I wonder if people can share their thou…
xtdidregress using continous treatment variable - ERROR insufficient observationsHi, I have survey data on individual firms from 2008-2017. I want to test how a reform that happene…
Subscribe to:
Post Comments (Atom)
0 Response to merge on one variable and AT LEAST one other variable
Post a Comment