EconPapers    
Economics at your fingertips  
 

precombine: A command to examine n ≥ 2 datasets before combining

Mark Chatfield

Stata Journal, 2015, vol. 15, issue 3, 607-626

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. Copyright 2015 by StataCorp LP.

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 (search for similar items in EconPapers)
Date: 2015
Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj15-3/dm0081/
References: Add references at CitEc
Citations:

Downloads: (external link)
http://www.stata-journal.com/article.html?article=dm0081 link to article purchase

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:tsj:stataj:v:15:y:2015:i:3:p:607-626

Ordering information: This journal article can be ordered from
http://www.stata-journal.com/subscription.html

Access Statistics for this article

Stata Journal is currently edited by Nicholas J. Cox and Stephen P. Jenkins

More articles in Stata Journal from StataCorp LLC
Bibliographic data for series maintained by Christopher F. Baum () and Lisa Gilmore ().

 
Page updated 2025-03-22
Handle: RePEc:tsj:stataj:v:15:y:2015:i:3:p:607-626