Dear everyone,
I really hope to get your advice. I am merging two dta files using command: merge 1:1 country1 year using Data Statalist Using, keep(match master)
There was no error message after the merge, however when I check the merged data, many of the merged data are wrong. For example the data for country A is put under country B. I try to search online, I guess the problem lies in the format of my id variable “country1”. I create variable country1 using: encode country, gen(country1). However I still don’t know how to fix it. Your help is greatly appreciated. Thank you.
Related Posts with Merged data is incorrect
Font for Tables and FiguresI am using kpfonts in LaTeX and would like to have the same font in figures and tables that I produc…
Counting the number of significant coefficients in a linear regressionIs there any simple way by which I can count the number of only significant coefficients in a regres…
Graphing problem with data for employmentTrying to produce a graph from already a coding file that is available online and it certainly is re…
compare variables in two yearsDeat Statalist, I have a set of variables from 2010-2012, I want to compare which companies are new…
egen rowmax produces additional decimalsHello. I'm working with US Census data in Stata 15.1. Each observation is a geographic area and the …
Subscribe to:
Post Comments (Atom)
0 Response to Merged data is incorrect
Post a Comment