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
Modification of stored estimatesDear StataListers, Is it possible to recode the _at variable in a stored estimate (see below)? I wo…
Confusion about how to keep students in the right courses in the right levelStata 15.1 I have a list of students who are taking certain courses. Some of the courses have level …
Industry Dummy Variables and independent variablesI am conducting a cross-sectional study on UK firms and aim to find (if any) a relationship between …
how to use stored estimates for contrasts in fixed effects regressions?Hello All, This must be a simple problem - but I have searched for a day and somehow cannot find the…
Tobit regression will not workI'm running a tobit regression to work out price elasticises and cross price elasticities for demand…
Subscribe to:
Post Comments (Atom)
0 Response to Merged data is incorrect
Post a Comment