Hi!
I have a cross-sectional time-series dataset and would like to add some firm-specific information from another dataset.
The variables I intend to use for merging is a company identifier (ds_code) and year. Unfortunately I have no idea why I receive 0 matched observations I checked for duplicates and the format should be fitting as well?
. merge m:1 ds_code year using "C:\Users\Desktop\Stata - Analysis\All_Financials.dta"
(note: variable ds_code was str6, now str7 to accommodate using data's values)
Result # of obs.
-----------------------------------------
not matched 1,992,565
from master 3,998 (_merge==1)
from using 1,988,567 (_merge==2)
matched 0 (_merge==3)
-----------------------------------------
Can anyone give me an advice from outside what might be the cause for this problem?
Thanks a lot!
Related Posts with Problems with merge command
Issue running xtreg commands with scalarI am using Stata version 15.1 and I have 47 variables and 1,010 observations in my dataset. I am doi…
Plotting a graph with several observations per yearHello everyone. I am currently working on a data set with trade values broken down into single tran…
MLE FunctionDear StatList, I am trying to replicate Harrison G. (2008) MLE of utility Functions using Stata. Ho…
Creating a unique household ID (HHID).Dear all, I have created a panel data from 2 waves (2004-05 and 2011-12) of Indian Human Developmen…
Outputting data in Word with formatting, preferably with longer labels.Hello Listers, I have a client who is taxing my skills when it comes to formatting tables for publi…
Subscribe to:
Post Comments (Atom)
0 Response to Problems with merge command
Post a Comment