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" <>
To   <>
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 

.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
>>> 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. 


This mail sent through
*   For searches and help try:

*   For searches and help try:

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