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
PSM (ATET and ATE)Hello all, I will please like an answer to this question. When calculating Average Treatment Effect…
SIR models in StataDear all, I have to estimate the equations of a SIR model to project the spread of an infectious di…
problem with gsemHi all, I am quite new to Stata and I am trying to run a Bernoulli-logit regression with gsem builde…
njc_stuff package updated on SSCThanks as ever to Kit Baum, this package has been updated on SSC. The following explanation is iden…
coefplot : groups() option not producing desired resultsHi Stata users, I am using coefplot in Stata 15 to try and replicate the graph below where there are…
Subscribe to:
Post Comments (Atom)
0 Response to Merge two datasets
Post a Comment