Transcription of Stata: Software for Statistics and Data Science | Stata
{{id}} {{{paragraph}}}
Merge datasetsDescriptionQuick startMenuSyntaxOptionsRemarks and examplesReferencesAlso seeDescriptionmergejoins corresponding observations from the dataset currently in memory (called the masterdataset) with those (called the using dataset), matching on one or more perform match merges (one-to-one, one-to-many, many-to-one, and many-to-many), which are often calledjoinsby database also perform sequential merges,which have no equivalent in the relational database for adding new variables from a second dataset to existing observations. You usemerge, for instance, when combining hospital patient and discharge datasets.
merge, for instance, when combining hospital patient and discharge datasets. If you wish to add new observations to existing variables, then see[D] append. You use append, for instance, when adding current discharges to past discharges. To link datasets in separate frames, you can use the frlink and frget commands. Linking and
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}