Hi,
I used the one to many formula to merge two data sets. Once done, how can I keep only the matched observations?
merge 1:m hhcode using "xyz.dta"
(label province already defined)
(label region already defined)
Result # of obs.
-----------------------------------------
not matched 379,662
from master 142 (_merge==1)
from using 379,520 (_merge==2)
matched 120,347 (_merge==3)
-----------------------------------------
Best,
Shehryar
Related Posts with How do I keep only the matched observation after data set merge (STATA 15)
Do-file stops processing commands following ODBC SQL SELECT loadingUsing Stata 15.1/IC on Win 10 Pro, 16GB RAM, Intel i7-8550U CPU @ 1.80GHz 4 core processor Hi Stat…
Stata program for Blau and Kahn (2007)Hi, I am intersted in coding a model that is similar to Blau and Kahn (2007), but I dont have many …
Having multiple varlists using syntax commandHello all, I was wondering how I can have multiple varlists using syntax command. As an example for …
Power of PVAR modelDear All, since there is no Rsquared in PVAR models. how can i test for the power of the model? …
Panel Var IRFDear All, I'm running panel var on two datasets and i want to compare their irf graphs. i want to pu…
Subscribe to:
Post Comments (Atom)
0 Response to How do I keep only the matched observation after data set merge (STATA 15)
Post a Comment