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)
CI for smoothed scaled Schoenfeld residuals after fitting Cox modelDear Stata list I would like to estimate a CI for the smoothed scaled Schoenfeld residuals after fi…
Principal component analysisHi dears, I have a question. I would like to apply the PCA for constructing a single index. I have v…
What are the functional form of the fixed-effects regression, random-effects regression and pooled regression?Good morning to the community Stata. I wrote that the functional form of the fixed-effects regressi…
Census division by year fixed effectsHello stata community, My current research needs to account for time varying shocks , and therefore…
Endogeneity with Hausman test?Hello all, I'm finishing up my master thesis and I received feedback that I should include something…
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