Good morning everyone.
I need to merge two datasets but the do file doesn't work. The structure is this:
use dataset2
sort countryname year
save dataset2, replace
use maindataset
sort countryname year
merge countryname year using dataset2 --------------------> at this point appears this message: (you are using old merge syntax; see [D] merge for new syntax); variable _merge already defined r(110); and the Do-File end
drop if _merge==2
save maindataset, replace
Someone could explain me why?
Related Posts with Merge two datasets
How does Stata know which variable is the main variable?I'm starting to get a little confused about how R knows which variable is the main variable and whic…
What is a non-parametric regression? The screenshot below is from a paper that I am reading and the author says it is a non-parametric r…
Text Similarity Using lsemanticaHi, I am new to Stata text similarity. I am trying to use lsemantica command to identify the similar…
Create a table with an arbitary number of columns/variablesHi, I have a dataset with some observations e.g. number of days a patient had the influenca and dif…
Creating quartiles on a panel data set based on a variable's value in one periodHello all, I want to do something pretty theoretically simple (that I used to do myself, but have c…
Subscribe to:
Post Comments (Atom)
0 Response to Merge two datasets
Post a Comment