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)
Problem with xi - syntaxI just realized the solution. Sorry. When you are making only dummies with xi and not running a com…
Adjusting bar sizeHi, I hope everyone here is safe working from home. I am working with bar charts from my real-time …
Modelling market share of brands using panel data with cross-sectional variablesHi everyone, I'm trying to model the choices among different products from 2000 to 2018 in differen…
summarize variable by group with max and min valuesHi, How can I summarize a variable by group including maximum and minimum value? This only calcula…
Flexible Parametric Survival (stpm2) - command str2d not workingDear Forum Members, I'm using the user-written - stpm2 - written by Royston and Lambert. The comman…
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