Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: problems with merge


From   "Alfonso Miranda Caso Luengo" <[email protected]>
To   <[email protected]>
Subject   Re: st: problems with merge
Date   Mon, 28 Jul 2003 17:22:13 +0100

First you have to decide what variable will be
the `key' to perform the merge, say it is var1. 
Suppose you master data is 1.dta and your using
data is 2.dta. Sort the using dataset on var1 and
save. Then sort the master dataset and type 
type

.merge var1 using 2.dta

Note that I am assuming that both datasets are in the current directory.

===========================================
Alfonso Miranda
PhD Student

Economics Department
University of Warwick
Coventry CV4 7AL
E-mail: [email protected]
===========================================
>>> [email protected] 07/28/03 17:10 PM >>>
I would like to merge all of the variables of one data set with the variables 
of another dataset. The dataset which requires merging contains village level 
variables and the other is a household level dataset. 
I am unsure of how to do this and how to sort the variables of each dataset. 

Jack 



------------------------------------------------
This mail sent through http://webmail.zoom.co.uk
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index