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
varnorm: rejection of the null hypothesis I performed the varnorm test and results rejects the null in all the three cases (Jarque-Bera, Skew…
jackknifing the wild bootstrap using boottestIn the wild bootstrap, the process for generating many simulated data sets begins by refitting the o…
Stata's log-likelihood and likelihood ratio test for gamma GLMI'm trying to make sense of the log-likelihood reported by Stata for a glm with family(gamma), which…
Store inverse of mean for dummy variable without recodeI am trying to just get some simple means of indicator variables and store them to create a new data…
Missing Data - Replace Variable Command Issue - Using ds and foreach commandsI am using Stata version 15.1 and I have 47 variables and 1,010 observations in my dataset. I am doi…
Subscribe to:
Post Comments (Atom)
0 Response to Merged data is incorrect
Post a Comment