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
Cross-level interactions vs. separated regressions for categories of the interaction variable in multilevel modelsDear all, I want to investigate which child in a sibling group takes over the care of a parent. The…
splitting Chinese addresses?Dear All, Suppose that I have the following addresses (in Chinese), Code: * Example generated by -d…
Reshapes wide to long without wave identifierHi I have a follow-up tricky reshape that I would like some help with please. I would like to resha…
Concentration Index (industries within one sector per country)Hello, I have a set of industries within one sector and I would like to calculate the degree of con…
In Stata 17.0 Kaplan-Meier graph with log scale in xaxis impossible due to start at zero, why?Hi, I have tried to start Kaplan-Meier plot with logscale at time -axis using several forms of stset…
Subscribe to:
Post Comments (Atom)
0 Response to Problems with merge command
Post a Comment