Presentation 3 - Combining Datasets
Presentation 3 - Combining Datasets
(EASTC)
TRAINING MANUAL
Physical Address
By
The Eastern Africa Statistical Training Centre
Edwin Magoti P. O. Box 35103,
Changanyikeni - Dar Es Salaam
Contacts
(+255) 766151460
(+255) 737829252
[email protected]
[email protected]
www.eastc.ac.tz
Magoti, ET - EASTC - 2023
Merging and Appending Data Set
General Syntax:
o merge 1:1 UniqueVarName using Dataset2.dta
o merge m:1 UniqueVarName using Dataset2.dta
o merge 1:m UniqueVarName using Dataset2.dta
o merge m:m UniqueVarName using Dataset2.dta
Illustration on merging
datasets
General Syntax:
• Basic syntax
• mmerge match-variable(s) using
It also makes merging easy, filename
• The syntax goes with serval options,
these can be accessed using the help
command in STATA, (help mmerge).