Home  >>  Archives  >>  Volume 15 Number 3  >>  dm0081

The Stata Journal
Volume 15 Number 3: pp. 607-626



Subscribe to the Stata Journal
cover

precombine: A command to examine n>=2 datasets before combining

Mark D. Chatfield
Menzies School of Health Research
Charles Darwin University
Darwin, Australia
[email protected]
Abstract.  In this article, I present a new command, precombine, that alerts the user to, and provides assurance concerning, some problems that can occur when multiple Stata datasets are merged and appended. It describes variables that are common to multiple datasets as well as variables that are unique to one dataset. Where value labels are attached to variables, it checks whether code sets are identical across datasets. Summary statistics for values of all variables can also be listed and left in memory along with the descriptions of each variable of each dataset.
Terms of use     View this article (PDF)

View all articles by this author: Mark D. Chatfield

View all articles with these keywords: precombine, data management, merge, append, joinby, cross, describe, uselabel, key, overlapping variables, common variables, same-named variables, label, value labels, code sets, codings, cfvars, vlc, cf, tabstat

Download citation: BibTeX  RIS

Download citation and abstract: BibTeX  RIS