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

st: RE: Merge data

From   "Balls, Joyce" <>
To   "''" <>
Subject   st: RE: Merge data
Date   Wed, 12 Nov 2003 14:39:18 -0800

Hello there,

As a new user to Stata as well I've used the following to merge data 

merge X1 using "C:\Filename", 
tab _merge
assert _merge~=3
then sort the data by X1

I hope this helps. 


Joyce E. Balls, MPE
Project Coordinator
University of California, San Francisco
"Kind words can be short and easy to speak, but their echoes are truly
endless." ~ Author Unknown

 -----Original Message-----
From: 	Lok Wong [] 
Sent:	Tuesday, November 11, 2003 7:58 PM
Subject:	st: Merge data


I have one question about merging data..I am wondering if someone out there 
could help me with it.

Let's say data sets, A and B.. A includes {X1,X2,X3,X4} and B 
includes{X1,X2,X5}..Using X1 and X2, we could uniquely identify the 
individuals in the data...Moreover,the sample size of B is bigger that of 
A..I only want X5 of individuals in B who are also in A...How could I do 

Thanks a lot..


MSN Messenger with backgrounds, emoticons and more.

*   For searches and help try:
*   For searches and help try:

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